IWxShape.TextHorzOffset

Syntax

TextHorzOffset: Double;

Description

The TextHorzOffset property determines horizontal offset of text. This property can be used only for a line (IWxLink). If the property values are positive, text is offset right from the line center, if they are negative, it is offset left from the line center.

Example

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

Sub UserProc;

Var

ws: IWxWorkspace;

Link : IWxLink;

Begin

ws.BeginUpdate;

Link := ws.Shapes.Item(3) As IWxLink;

Link.Text := "Text";

Link.TextHorzOffset := 20;

Link.TextVertOffset := -10;

ws.EndUpdate;

End Sub UserProc;

After executing the example the text for the line is defined and shifted.

See also:

IWxShape