BackgroundBrush: IGxBrush;
The BackgroundBrush determines the brush that is used to fill cell background.
The instance of one of the following classes can be specified as the property value:
GxHatchBrush. Hatch brush with specified color.
GxLinearGradientBrush. Linear gradient brush.
GxSolidBrush. Solid color fill brush.
Executing the example requires a form with the Button1 button located on it, the TabSheetBox component named TabSheetBox1 and the UiErAnalyzer component which is set to express report and used as a data source for the TabSheetBox component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Selection: ITabRange;
Style: ITabCellStyle;
Begin
Selection := TabSheetBox1.Source.GetTabSheet.View.Selection.Range;
Style := Selection.Style;
Style.BackgroundBrush := New GxSolidBrush.Create(GxColor.FromName("Green"));
End Sub Button1OnClick;
Clicking the button changes the background image style for the cells selected in TabSheetBox1, that is, background is filled with green.
See also: