Page History
...
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 |
...
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.
...
Code Block |
---|
// 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") |