DataFormat property of one dataobject
VB: Property Get/Let DataFormat As COLDATAFORMAT
C++: COLDATAFORMAT DataFormat
C#: COLDATAFORMAT DataFormat
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
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; }
8.0SR2