DiagramContent class
Leave feedback
On this page
Represents a Visio document.
- Add watermarks to diagram documents
- Existing objects in diagram document
The DiagramContent type exposes the following members:
| Method | Description |
|---|---|
| dispose | Disposes the current instance. (inherited from Content) |
| find_images | Finds images according to the specified search criteria. (inherited from ContentPart) |
| find_images_image_search_criteria | (inherited from ContentPart) |
| search | Finds possible watermarks according to the specified search criteria. (inherited from ContentPart) |
| search_search_criteria | (inherited from ContentPart) |
| Property | Description |
|---|---|
| header_footer | The header and footer of this DiagramContent. |
| pages | The collection of all pages of this DiagramContent. |
import groupdocs.watermark as gw
import groupdocs.watermark.contents.diagram as gwc_vsdx
load_options = gw.DiagramLoadOptions()
with gw.Watermarker("diagram.vsdx", load_options) as watermarker:
content = watermarker.get_content(gwc_vsdx.DiagramContent)
for shape in content.pages[0].shapes:
if shape.text and "© Aspose 2016" in shape.text:
shape.text = "© GroupDocs 2017"
watermarker.save("diagram.vsdx")
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.