IWxShape.TextHorzOffset

Syntax

TextHorzOffset: Double;

Description

The TextHorzOffset property determines horizontal offset of text. The property can be used only for the 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 that repository contains a workspace with the WSP identifier containing a line.

Add links to the Andy, Metabase system assemblies.

Sub UserProc;
Var
    mb: Imetabase;
    wsp: IWxWorkspace;
    Link: IWxLink;
Begin
    // Get workspace for editing
    mb := MetabaseClass.Active;
    wsp := mb.ItemById("WSP").Edit As IWxWorkspace;
    wsp.BeginUpdate;
    Link := wsp.Shapes.Item(0As IWxLink;
    Link.Text := "Text";
    Link.TextHorzOffset := 20;
    Link.TextVertOffset := -10;
    wsp.EndUpdate;
    // Save changes
    (wsp As IMetabaseObject).Save;
End Sub UserProc;

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

See also:

IWxShape