get_column_width method

get_column_width

Returns the width of the specified column in points.

def get_column_width(self, column):
    ...
Parameter Type Description
column int The column index.

Returns: float: The width of the column in points.

Example

import groupdocs.watermark as gw
import groupdocs.watermark.contents.spreadsheet as gwc_xls

load_options = gw.SpreadsheetLoadOptions()
with gw.Watermarker("spreadsheet.xlsx", load_options) as watermarker:
    content = watermarker.get_content(gwc_xls.SpreadsheetContent)
    width = content.worksheets[0].get_column_width(0)
    print(width)

See Also