WrapText: TabFormatWordWrap;
The WrapText property determines whether text in table cells should be wrapped.
Executing the example requires a form, a button located on this form and named Button1, the UiTabSheet component named UiTabSheet1 and the TabSheetBox component. 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: