ITabCellStyle.FormatType

Syntax

FormatType: CustomFormatType;

Description

The FormatType property determines the number format in the table cell.

Example

Executing the example requires to create a form, locate the Button1 button on the form, the TabSheetBox component and the UiTabSheet component with the UiTabSheet1 name. Specify the UiTabSheet1 as a data source for the TabSheetBox.

Class OBJ100607Form: Form
    UiTabSheet1: UiTabSheet;
    Button1: Button;
    TabSheetBox1: TabSheetBox;

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var TSheet: ITabSheet;
            TRange: ITabRange;
            Style: ITabCellStyle;
    Begin
        TSheet := UiTabSheet1.TabSheet;
        TRange := TSheet.ParseRange("A0:B1");
        Style := TRange.Style;
        Style.FormatType := CustomFormatType.Date;
    End Sub Button1OnClick;

End Class OBJ100607Form;

When clicking the button with the Button1 name the cells values in the A0:B1 range are to be corresponding to the Data formay.

See also:

ITabCellStyle