TextJustification Option

 

The TextJustification option changes the justification of multiple line text blocks. The OptionValue is set to 0, 1, or 2. 0 is left justified. 1 is center justified. 2 is right justified.

 

Syntax

object.Construct(“CreateModule”)

object.Option(“Type”, “Text”)

object.Do() or object.DoOnce()

 

object.Construct(“ModifyModule”)

object.Option(“Module”, “Text”)

object.Option(“TextJustification”, “OptionValue”)

object.Do() or object.DoOnce()

 

Example

This example shows how to change the text multiple line justification to centered.

 

  CommandApi.Construct ("ModifyModule")

  CommandApi.Option ("Module", "Text")

  CommandApi.Option ("TextJustification", "1")

  CommandApi.Do()

 

Used by: Text module

 

 

See Also

Automation Model