An item's data alignment.
Usage
Set_Property(OLECtrlEntID, "OLE.ItemAlignment[key]", Array)
Values
Array has the following structure:
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Horizontal | Option | The horizontal alignment of the item's data | Left |
<2> | Vertical | Option | The vertical alignment of the item's data | Center |
Indices
Index | Description |
---|---|
key | An item's unique key |
Remarks
The ItemAlignment property determines how the data is justified within the item's rectangle. The property has two fields. The first field aligns the data horizontally and can be set to "Left", "Center", or "Right". The second field aligns the data vertically and can be set to "Top", "Center", or "Bottom".
Use the DefAlignment property to set the default alignment for new items.
Example
// Right justify the data for the item whose key is "Item1" Set_Property(@Window:".OLE_TREE", "OLE.ItemAlignment[Item1]", "Right") // Center justify all items Set_Property(@Window:".OLE_TREE", "OLE.ItemAlignment[All]", "Center")