ITabCellStyle.FormatType

Fore Syntax

FormatType: CustomFormatType;

Fore.NET Syntax

FormatType: Prognoz.Platform.Interop.ForeSystem.CustomFormatType;

Description

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

Fore Example

To execute an example 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.

Fore.NET Example

To execute an example create a .NET form, locate the Button1 button on the form, the TabSheetBoxNet component and the UiTabSheetNet component with the UiTabSheetNet1 name. Specify the UiTabSheetNet1 as a data source for the TabSheetBoxNet. Connect the Tab and ForeSystem system assemblies.

Imports System;
Imports System.Collections.Generic;
Imports System.ComponentModel;
Imports System.Data;
Imports System.Drawing;
Imports System.Text;
Imports System.Windows.Forms;
Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Tab;
Imports Prognoz.Platform.Interop.ForeSystem;

Public Partial Class OBJ593Form: Prognoz.Platform.Forms.Net.ForeNetForm
    Public Constructor OBJ593Form();
    Begin
        InitializeComponent();
    End Constructor;

    Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
        Var TSheet: ITabSheet;
        TRange: ITabRange;
        Style: ITabCellStyle;
    Begin
        TSheet := UiTabSheetNet1.TabSheetUi.TabSheet;
        TRange := TSheet.ParseRange("A0:B1");
        Style := TRange.Style;
        Style.FormatType := CustomFormatType.cftDate;
    End Sub;
End Class;

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