8.1.2.16 Column::GetSubFormat

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

Get the SubFormat used by a column.

Syntax

GetSubFormat()

Parameters

Return

The subformat as an integer enumerated from 0

Examples

import PyOrigin
PyOrigin.FindWorksheet('[Book1]Sheet1').Columns(0).SetFormat(2)
SubFmt=PyOrigin.FindWorksheet('[Book1]Sheet1').Columns(0).GetSubFormat()
print('The subformat number is %d' % SubFmt)