PatternStyle: TabPattern;
The PatternStyle property determines the pattern of the table cell background.
The property is outdated, use ITabCellStyle.BackgroundBrush.
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.PatternStyle := TabPattern.Cross;
Style.PatternColor := GxColor.FromName("Red");
End Sub Button1OnClick;
When you click this button, dashed background fill is set for a selected cell range. Red crossing lines are used as the hatch.
See also: