SpreadsheetWatermarkHeaderFooterOptions class

SpreadsheetWatermarkHeaderFooterOptions class

Represents options when adding the watermark to a Spreadsheet header/footer.

Learn more:

The SpreadsheetWatermarkHeaderFooterOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the SpreadsheetWatermarkHeaderFooterOptions class.

Properties

Property Description
worksheet_index The index of worksheet to add the watermark to.

Fields

Field Description
DEFAULT Gets the default value for the class. (inherited from WatermarkOptions)

Example

from groupdocs.watermark import Watermarker
from groupdocs.watermark.options.spreadsheet import SpreadsheetLoadOptions, SpreadsheetWatermarkHeaderFooterOptions
from groupdocs.watermark.watermarks import Font, TextWatermark
load_options = SpreadsheetLoadOptions()
with Watermarker("./test.xlsx", load_options) as watermarker:
    watermark = TextWatermark("Test", Font("Arial", 14))
    options = SpreadsheetWatermarkHeaderFooterOptions()
    options.worksheet_index = 0
    watermarker.add(watermark, options)
    watermarker.save()

See Also