Search
DiagramDocument Members
Constructors Properties Methods
 


Represents a collection of diagram pages.

The following tables list the members exposed by the DiagramDocument type.

 Public Constructors

  Name Description

DiagramDocument

Initializes a new instance of the DiagramDocument class.

 Public Properties

  Name Description

dirty

Gets or sets a value indicating whether the diagram document has changed since loading it.

pages

Gets a list of the diagram pages contained in this document.

 Public Methods

  Name Description

addPage

Adds a page to the document.

fromJson

Deserializes the document from a JSON string.

fromXmlDocument

Loads document contents from specified XML Document.

loadFromString

Loads document contents from specified XML or JSON string.

loadFromXml

Loads the document from an XML file.

raiseClicked

Raises an event which notifies that a Diagram item has been clicked. (Inherited from DiagramBase.)

raiseCreated

Raises an event which notifies that a Diagram item has been created. (Inherited from DiagramBase.)

raiseDeleted

Raises an event which notifies that a Diagram item has been deleted. (Inherited from DiagramBase.)

raiseDeselected

Raises an event which notifies that a Diagram item has been deselected. (Inherited from DiagramBase.)

raiseDoubleClicked

Raises an event which notifies that a Diagram item has been double-clicked. (Inherited from DiagramBase.)

raiseModified

Raises an event which notifies that a Diagram item has been modified. (Inherited from DiagramBase.)

raisePasted

Raises an event which notifies that a Diagram item has been pasted from clipboard. (Inherited from DiagramBase.)

raiseSelected

Raises an event which notifies that a Diagram item has been selected. (Inherited from DiagramBase.)

raiseSelecting

Raises an event which notifies that a Diagram item will be selected. (Inherited from DiagramBase.)

raiseSelectionChanged

Raises an event which notifies that the selection has changed. (Inherited from DiagramBase.)

removePage

Removes the specified page from the document.

saveToString

Encodes the document contents into an XML or JSON string.

saveToXml

Saves the document to an XML file.

toJson

Serializes the document into a JSON string.

toXmlDocument

Saves the document into an XML Document.

 See Also