Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PosNameTypeDescriptionDefault
<1>HorizontalOptionThe horizontal alignment of the item's dataLeft
<2>VerticalOptionThe vertical alignment of the item's dataCenter

...

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")

See Also

ItemDefAlignment