ITabCellStyle.PatternColor

Syntax

PatternColor: IGxColor;

Description

The PatternColor property determines the color of the pattern of the table cell background.

Comments

The property is outdated, use ITabCellStyle.BackgroundBrush.

Example

To execute the example a form with the Button1 button, the UiTabSheet component named UiTabSheet1 and the TabSheetBox component are required. UiTabSheet1 is the 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:

ITabCellStyle