TextAlignmentVertical: GxAlignment;
The TextAlignmentVertical property determines vertical text alignment.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
Shape: IWxShape;
Style: IWxStyle;
Begin
ws.BeginUpdate;
Shape := ws.Shapes.Item(1);
Shape.Text := "Text";
Style := Shape.Style;
Style.TextFontSize := 12;
Style.TextFontBrushColor := GxColor.FromName("Red");
Style.TextAlignmentVertical := GxAlignment.Far;
ws.EndUpdate;
End Sub UserProc;
After executing the example the object contains text of defined color, size which will be aligned to the bottom edge.
See also: