Property ColumnDefs
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
ColumnDefs
Gets or sets the width (in pixels) of all columns of the dialog box grid, separated by semicolons.
public string ColumnDefs { get; set; }
Property Value
- string
The width (in pixels) of all columns of the dialog box grid, separated by semicolons.
Remarks
Instead of a pixel value, you can also specify the following values:
- "auto" or "a": The width of the column will be automatically adapted to the widest dialog box item in that column.
- *: The column will have the largest possible width, depending on the width of the other columns.
note
If automatic ColumnDefs are specified, e.g. "a;a;a;a", and you want to show a UIBlockDefinition with a columnspan, then the space for each column will be equal, so other blocks will also move. To avoid this, you can change the ColumnDefs to "a;a;a;a;*". The extra '*' column will use all extra available space. Then change the columnspan so the block uses that new '*' column.
Example:
UIBuilder uib = new UIBuilder();
uib.ColumnDefs = "a;a;a;a;*"; // 4 columns + extra space column.
UIBlockDefinition uibd = new UIBlockDefinition();
uibd.Column = 0; // On column 0 (0-based).
uibd.ColumnSpan = 5; // if column pos=1, columnspan = 4