Column::SetFormat

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.

 

Description

Set the column format.

Syntax

SetFormat(Format)

Parameters

Format
Column format as an integer
0: Numeric
1: Text
2: Time
3: Date
4: Month
5: Day of Week
9: Text and Numeric

Return

None

Examples

import PyOrigin
PyOrigin.FindWorksheet('[Book1]Sheet1').Columns(0).SetFormat(1)
print(PyOrigin.FindWorksheet('[Book1]Sheet1').Columns(0).GetFormat())

See Also

Column::GetFormat