ITabCellStyle.WrapText

Syntax

WrapText: TabFormatWordWrap;

Description

The WrapText property determines whether text in table cells should be wrapped.

Example

To execute the example a form with a button on this form named Button1, a component UiTabSheet named UiTabSheet1 and a component TabSheetBox are required. The UiTabSheet1 is a data source for the TabSheetBox component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

TSheet: ITabSheet;

TRange: ITabRange;

Style: ITabCellStyle;

Begin

TSheet := UiTabSheet1.TabSheet;

TRange := TSheet.View.Selection.Range;

Style := TRange.Style;

Style.WrapText := TabFormatWordWrap.Syllable;

End Sub Button1OnClick;

Click this button to change text wrapping mode for selected cell range. Cell text is hyphenated.

See also:

ITabCellStyle