2.7.3 DataFormat


Description

DataFormat property of one dataobject

Syntax

VB: Property Get/Let DataFormat As COLDATAFORMAT
C++: COLDATAFORMAT DataFormat
C#: COLDATAFORMAT DataFormat

Remark

Examples

VB

Public Sub SetDataFormat()
    Dim app As Origin.ApplicationSI
    Dim Wks As Origin.Worksheet

    Set app = New Origin.ApplicationSI
    Set Wks = app.FindWorksheet("")

    Wks.Columns(0).DataFormat = DF_BYTE
    Wks.Columns(1).DataFormat = DF_TEXT
    Wks.Columns(2).DataFormat = DF_FLOAT

End Sub

C#

static void SetDataFormat()
{
    Origin.ApplicationSI app = new Origin.ApplicationSI();
    Worksheet wks = app.FindWorksheet("");

    wks.Columns[0].DataFormat = COLDATAFORMAT.DF_BYTE;
    wks.Columns[1].DataFormat = COLDATAFORMAT.DF_TEXT;
    wks.Columns[2].DataFormat = COLDATAFORMAT.DF_FLOAT;

}

Version Information

8.0SR2

See Also