IWxStyle.TextAlignmentVertical

Syntax

TextAlignmentVertical: GxAlignment;

Description

The TextAlignmentVertical property determines vertical text alignment.

Example

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:

IWxStyle