IWxShape.Text

Syntax

Text: String;

Description

The Text property determines the text that will be included into a shape.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UserProc;

Var

ws: IWxWorkspace;

Shape: IWxShape;

Begin

ws.BeginUpdate;

Shape := ws.Shapes.Item(1);

Shape.Text := "Text";

Shape.Style.TextFontSize := 12;

Shape.Style.TextFontBrushColor := GxColor.FromName("Red");

ws.EndUpdate;

End Sub UserProc;

After executing the example the shape contains text of the defined color and size.

See also:

IWxShape