__init__ constructor
Leave feedback
On this page
Initializes a new instance of the SpreadsheetTextEffects class.
def __init__(self):
...
import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww
import groupdocs.watermark.options.spreadsheet as gwo_xls
import groupdocs.watermark.common as gwc
load_options = gw.SpreadsheetLoadOptions()
with gw.Watermarker("spreadsheet.xlsx", load_options) as watermarker:
watermark = gww.TextWatermark("Test watermark", gww.Font("Segoe UI", 19.0))
effects = gwo_xls.SpreadsheetTextEffects()
effects.line_format.enabled = True
effects.line_format.color = gww.Color.red
effects.line_format.dash_style = gwc.OfficeDashStyle.DASH_DOT_DOT
effects.line_format.line_style = gwc.OfficeLineStyle.TRIPLE
effects.line_format.weight = 1
options = gwo_xls.SpreadsheetWatermarkShapeOptions()
options.effects = effects
watermarker.add(watermark, options)
watermarker.save("spreadsheet.xlsx")
- class
SpreadsheetTextEffects
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.