DiagramContent class

DiagramContent class

Represents a Visio document.

Learn more:

The DiagramContent type exposes the following members:

Methods

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)

Properties

Property Description
header_footer The header and footer of this DiagramContent.
pages The collection of all pages of this DiagramContent.

Example

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")

See Also