Get Text Alignment Icon Get Text Alignment

This action will get the font alignment for all current draw text actions. You can choose whether to retrieve the horizontal or vertical alignment to check, and the action will return one of the following constant values, that represent a different type of horizontal or vertical alignment:

Align LeftText is horizontally aligned to the left
Align CenterText is horizontally aligned to the center
Align RightText is horizontally aligned to the right
Align TopText is vertically aligned to the top
Align MiddleText is vertically aligned to the middle
Align BottomText is vertically aligned to the bottom

The return constant will be stored in the target variable that you specify, which can have been created previously or can be a new temporary one (if you check the "Temp" check-box).

 

Action Syntax:

Get Text Alignment Action

Example:

Get Text Alignment ExampleThe above action block code checks the horizontal text alignment and if it's not set to fa_left, then it is set to that value.