IWxStyle.WordWrap

Syntax

WordWrap: WxWordWrap;

Description

The WordWrap property determines wrap for the text included in objects.

Example

Executing the example requires that the repository contains a workspace with the IWSTYLE identifier that contains a shape.

Add links to the Andy, Metabase system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    Wsp: IWxWorkspace;
    Style: IWxStyle;
Begin
    // Get workspace for editing
    Mb := MetabaseClass.Active;
    Wsp := Mb.ItemById("IWSTYLE").Edit As IWxWorkspace;
    Style := Wsp.Styles.Item(0);
    Style.WordWrap := WxWordWrap.BreakWords;
    (Wsp As IMetabaseObject).Save;
End Sub UserProc;

After executing the example text wrap is set.

See also:

IWxStyle