> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/column.md).

# Column

The **Column** object represents an information column displayed in a tab (e.g. name, size, attributes, etc). A collection of **Column** objects can be retrieved from the [**Format**](/directory-opus/manual/reference/scripting_reference/scripting_objects/format.md)**.columns** property.

| Property Name      | Return Type       | Description                                                                                                                                                           |
| ------------------ | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *\<default value>* | *string*          | Returns the name of the column.                                                                                                                                       |
| autosize           | *bool*            | Returns **True** if the column width is set to *auto*.                                                                                                                |
| collapse           | *bool*            | Returns **True** if the column width is set to *collapse*.                                                                                                            |
| expand             | *bool*            | Returns **True** if the column width is set to *expand*.                                                                                                              |
| fill               | *bool*            | Returns **True** if the column width is set to *fill*.                                                                                                                |
| header             | *string*          | Returns the name of the column as displayed in the Lister column header.                                                                                              |
| label              | *string*          | Returns the name of the column as displayed in the *Columns* tab in the *Folder Options* dialog.                                                                      |
| max                | *int* or *string* | Returns the maximum width of the column in pixels, or the string "fill" if the maximum is set to *fill*.                                                              |
| min                | *int*             | Returns the minimum width of the column in pixels.                                                                                                                    |
| name               | *string*          | Returns the name of the column.                                                                                                                                       |
| reverse            | *bool*            | Returns **True** if the sort direction of the column is reversed.                                                                                                     |
| sort               | *int*             | Returns the sort order of the column (e.g. 1 for the primary sort field, 2 for the secondary sort field, etc). Returns 0 if the display is not sorted by this column. |
| width              | *int*             | Returns the current display width of the column in pixels.                                                                                                            |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/column.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
