IWxShape.TextVertOffset

Syntax

TextVertOffset: Double;

Description

The TextVertOffset property determines vertical offset of text. This property can be used only for a line (IWxLink). If the property values are positive, text is offset down from the line center, if the values are negative, it is offset upwards 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