IWxStyle.WordWrap

Syntax

WordWrap: WxWordWrap;

Description

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

Example

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

Add links to the Andy, Metabase system assemblies.

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

After executing the example text wrap is set.

See also:

IWxStyle