DiagramContent class

DiagramContent class

Represents a Visio document.

  • Add watermarks to diagram documents
  • Existing objects in diagram document

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. (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)

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

See Also