DiagramContent class
Leave feedback
On this page
Represents a Visio document.
Learn more:
- Add watermarks to diagram documents https://docs.groupdocs.com/display/watermarknet/Add+watermarks+to+diagram+documents
- Existing objects in diagram document https://docs.groupdocs.com/display/watermarknet/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. The search is conducted in the objects specified in Watermarker.SearchableObjects. (inherited from ContentPart) |
| find_images_image_search_criteria | (inherited from ContentPart) |
| search | Finds possible watermarks according to the specified search criteria. The search is performed on the objects listed in Watermarker.SearchableObjects. (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
from groupdocs.watermark.options.diagram import DiagramLoadOptions
import groupdocs.watermark.contents.diagram as gwc_vsdx
load_options = DiagramLoadOptions()
with gw.Watermarker("diagram.vsdx", load_options) as watermarker:
content = watermarker.get_content()
for shape in content.pages[0].shapes:
if shape.text and "© Aspose 2016" in shape.text:
shape.text = "© GroupDocs 2017"
watermarker.save("output.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.