get_column_width method

get_column_width

Gets 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
from groupdocs.watermark.options.spreadsheet import SpreadsheetLoadOptions
import groupdocs.watermark.contents.spreadsheet as gwc_xls

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

See Also