SpreadsheetWatermarkShapeOptions class
Leave feedback
On this page
Represents options when adding shape watermark to a Spreadsheet worksheet.
The SpreadsheetWatermarkShapeOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the SpreadsheetWatermarkShapeOptions class. |
| Property | Description |
|---|---|
| effects | The effects applied to the watermark, specified as a SpreadsheetImageEffects or SpreadsheetTextEffects instance. |
| worksheet_index | The index of the worksheet to add the watermark to. |
| alternative_text | The descriptive (alternative) text that will be associated with a shape. (inherited from SpreadsheetWatermarkBaseOptions) |
| is_locked | The property indicates whether editing of the shape in Excel is forbidden. (inherited from SpreadsheetWatermarkBaseOptions) |
| name | The name of the shape. (inherited from SpreadsheetWatermarkBaseOptions) |
| Field | Description |
|---|---|
| DEFAULT | Gets the default value for the class. (inherited from WatermarkOptions) |
import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww
import groupdocs.watermark.options.spreadsheet as gwo_xls
load_options = gw.SpreadsheetLoadOptions()
with gw.Watermarker("spreadsheet.xlsx", load_options) as watermarker:
watermark = gww.TextWatermark("Test watermark", gww.Font("Arial", 36))
options = gwo_xls.SpreadsheetWatermarkShapeOptions()
options.worksheet_index = 0
watermarker.add(watermark, options)
watermarker.save("spreadsheet.xlsx")
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.