"getAlignment"

This function returns the alignment set for an item within a column.

Synopsis

voidshape.getAlignment(string id, int column);

Parameters

Parameter Description
id ID of the item.
column The addressed column.

Return Value

The function returns the alignment set for the item as a string.

Example

This example adds a column and three items to a tree and then sets an alignment for them with "setAlignment".

main()
{
  TREE1.addColumn("B-----C-----A");
  TREE1.appendItem("","ADJ","A");
  TREE1.appendItem("","REG","B");
  TREE1.appendItem("","NO","C");
  this.setAlignment("ADJ",0,"AlignRight");
  this.setAlignment("REG",0,"AlignVCenter");
  this.setAlignment("NO",0,"AlignCenter");
  DebugN(this.getAlignment("ADJ",0));
  DebugN(this.getAlignment("REG",0));
  DebugN(this.getAlignment("NO",0));
}

The used alignments are retrieved and displayed in the logviewer:

  
WCCOAui1:["AlignRight|AlignTrailing"]
  
WCCOAui1:["AlignVCenter"]
  
WCCOAui1:["AlignCenter"]

Assignment

Tree Widget