ITabCellStyle.Font

Syntax

Font: ITabFont;

Description

The Font property determines the font of the table cell text.

Example

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;

Font: ITabFont;

Begin

TSheet := UiTabSheet1.TabSheet;

TRange := TSheet.View.Selection.Range;

Style := TRange.Style;

Font := Style.Font;

Font.Bold := TriState.OnOption;

Font.Color := GxColor.FromName("Red");

Font.Name := "Arial";

End Sub Button1OnClick;

Clicking the button changes parameters of font that is used to show data for the selected cell range.

See also:

ITabCellStyle