The DialogListColumns object lets you query or modify the columns in a Details mode list view control in a script dialog. Use the Control.columns property to obtain a DialogListColumns object.
You can enumerate this object to query the current columns. Each column is represented by a DialogListColumn object.
Method Name | Arguments | Return Type | Description |
---|---|---|---|
AddColumn |
<string:name> |
int |
Adds a new column to the list view, and returns the index of the new column (or -1 on failure). |
AutoSize |
none |
none |
Automatically sizes all columns in the list view to fit their content. |
DeleteColumn |
<int:index> |
none |
Deletes the specified column. You may only delete the main column (index 0) if there are no columns or items currently in the list. You can also specify index -1 to clear all columns from the control at once. (Provided no items are in the list.) |
GetColumnAt |
<int:index> |
object: |
Returns a DialogListColumn object representing the column in the specified index. |
GetDisplayOrder |
none |
object:Vector |
Returns the order which the list's columns are displayed on the screen. This may differ from their natural order if you have previously changed it via SetDisplayOrder. |
InsertColumn |
<string:name> |
int |
Inserts a new column in the list view at the specified index, and returns the index of the new column (or -1 on failure). You may only replace the main column (index 0) if there are no columns or items currently in the list. (Use SetDisplayOrder if you want to reorder how the columns are displayed visually.) |
SetDisplayOrder |
<int:indexA> |
none |
Changes the order in which the list's columns are displayed. |