IWxStyle.WordWrap

Syntax

WordWrap: WxWordWrap;

WordWrap: Prognoz.Platform.Interop.Andy.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;
Imports Prognoz.Platform.Interop.Andy;
 
Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    Shape: IWxShape;
    Style: IWxStyle;
Begin
    
// Get workspace for editing
    mb := Params.Metabase;
    ws := mb.ItemById[
"IWSTYLE"].Edit() As IWxWorkspace;
    Style := ws.Styles.Item[
0];
    Style.WordWrap := WxWordWrap.wwwBreakWords;
    (ws 
As IMetabaseObject).Save();
End Sub;

After executing the example text wrap is set.

See also:

IWxStyle