get_column_width method

get_column_width

Gets the width(in unit of characters) of the specified column in normal view

Returns

Width of column. For spreadsheet, column width is measured as the number of characters of the maximum digit width of the numbers 0~9 as rendered in the normal style’s font.

def get_column_width(self, column):
    ...
ParameterTypeDescription
columnintColumn index

get_column_width

Gets the column width.

Returns

def get_column_width(self, column, is_original, unit_type):
    ...
ParameterTypeDescription
columnintThe column index.
is_originalboolIndicates whether getting original width.
unit_typeCellsUnitType

See Also