WordProcessingTextEffects class
Leave feedback
On this page
Represents effects that can be applied to a text watermark for a Word document.
The WordProcessingTextEffects type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the WordProcessingTextEffects class. |
| Property | Description |
|---|---|
| flip_orientation | The orientation of a shape. |
| line_format | The line format settings, represented by a OfficeLineFormat instance. (inherited from OfficeTextEffects) |
| Field | Description |
|---|---|
| DEFAULT | Gets the default value for the class. |
import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww
import groupdocs.watermark.options.wordprocessing as gwo_wp
import groupdocs.watermark.common as gwc
load_options = gw.WordProcessingLoadOptions()
with gw.Watermarker("document.docx", load_options) as watermarker:
watermark = gww.TextWatermark("Test watermark", gww.Font("Arial", 19.0))
effects = gwo_wp.WordProcessingTextEffects()
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_wp.WordProcessingWatermarkSectionOptions()
options.effects = effects
watermarker.add(watermark, options)
watermarker.save("document.docx")
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.