ITabTableStyle.HeaderColumnStripe

Syntax

HeaderColumnStripe: ITabTableStripe;

Description

The HeaderColumnStripe property returns formatting style parameters of table column headers.

Example

Executing the example requires a form with the Button1 button located on it, the UiTabSheet component named UiTabSheet1 and the TabSheetBox component.

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

Var

Range: ITabRange;

TSheet: ITabSheet;

TTStyles: ITabTableStyles;

TStyle: ITabTableStyle;

s1: ITabCellStyle;

Begin

s1 := New TabCellStyle.Create;

s1.BackgroundColor := GxColor.FromName("Red");

TSheet := UiTabSheet1.TabSheet;

Range := TSheet.View.Selection.Range;

TTStyles := Range.TableStyles;

TStyle := TTStyles.Add;

TStyle.HeaderColumnStripe.Width := 1;

TStyle.HeaderColumnStripe.Style := s1;

End Sub Button1OnClick;

After executing the example the background color of column headers is changed to red for the selected cell range (A0:D4):

See also:

ITabTableStyle | Table Formatting Style Elements