Font: ITabFont;
The Font property determines the font of the table cell text.
Executing the example requires a form with the Button1 button located on it, the TabSheetBox component and the UiTabSheet component named UiTabSheet1. 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: