Search
XmlPersistContext Members
Constructors Fields Properties Methods
 


Contains methods that can help you serialize and deserialize MindFusion.Diagramming items to end from XML documents.

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

 Public Constructors

  Name Description

XmlPersistContext

Initializes a new instance of the XmlPersistContext class.

 Public Fields

  Name Description

LatestFormat

Specifies the latest file format revision number.

 Public Properties

  Name Description

BaseURI

Gets or sets the base URI of the XML document being loaded or saved. When not specified, the BaseURI of the underlying XmlDocument is used.

ClassVersion

Gets the class version of the currently deserialized item.

Diagram

Gets the underlying diagram object.

FileVersion

Gets the format revision number for the file being currently serialized.

IncludeUnalteredProperties

Gets or sets a value specifies whether properties that have their default value should be serialized to XML.

XmlDocument

Gets the underlying XML document.

 Public Methods

  Name Description

AddChildElement

Overloaded.  

FromRelativePath

Converts the specified path from relative to the BaseURI to an absolute path.

ReadAnchorPattern

Reads an AnchorPattern with the specified name.

ReadBool

Overloaded.  

ReadBrush

Overloaded.  

ReadByte

Reads a byte value with the specified name.

ReadChar

Reads a char value with the specified name.

ReadColor

Overloaded.  

ReadColorArray

Reads a color array with the specified name.

ReadDecimal

Reads a decimal value with the specified name.

ReadDouble

Reads a double value with the specified name.

ReadEffect

Overloaded. Reads a NodeEffect object.

ReadEnum

Overloaded.  

ReadFloat

Overloaded.  

ReadFloatArray

Reads a float array with the specified name.

ReadFont

Overloaded.  

ReadGroup

Reads a group object with the specified name.

ReadHashtable

Reads a hash or traits table object with the specified name.

ReadImage

Reads an Image object with the specified name.

ReadInt

Overloaded.  

ReadItemReference

Overloaded.  

ReadLong

Reads a long value with the specified name.

ReadNodeConstraints

Reads a NodeConstraints object with the specified name.

ReadObject

Reads an object with the specified name.

ReadPen

Overloaded. Reads a MindFusion.Drawing.Pen object with the specified name.

ReadPointCollection

Reads a PointCollection object with the specified name.

ReadPointCoordinates

Reads a List<Point> object with the specified name.

ReadPointF

Overloaded.  

ReadRectangleF

Reads a Rect object with the specified name.

ReadSByte

Reads a 8-bit signed integer value with the specified name.

ReadShape

Reads a Shape object with the specified name.

ReadShort

Overloaded.  

ReadSizeF

Reads a Size object with the specified name.

ReadStream

Reads a stream with the specified name.

ReadString

Overloaded.  

ReadStringFormat

Overloaded.  

ReadStyle

Reads a Style object with the specified name.

ReadSvg

Reads a SVG object with the specified name.

ReadTag

Reads the specified tag for the specified object.

ReadTheme

Reads a Theme object with the specified name.

ReadThickness

Reads a Thickness object with the specified name.

ReadUInt

Reads an unsigned integer value with the specified name.

ReadULong

Reads an unsigned long value with the specified name.

ReadUShort

Reads an unsigned short value with the specified name.

SelectNode

Returns the child node with the specified name.

SelectNodes

Returns the child nodes with the specified name.

ToRelativePath

Converts the specified absolute path to a path relative to the BaseURI.

WriteAnchorPattern

Writes the specified anchor pattern.

WriteBool

Writes a boolean value with the specified name.

WriteBrush

Writes a reference to the specified brush. The brush is registered within the internal hashtable for subsequent serialization.

WriteByte

Write a byte value with the specified name.

WriteChar

Write a char value with the specified name.

WriteColor

Writes the specified color.

WriteColorArray

Writes the specified array.

WriteDecimal

Write a decimal value with the specified name.

WriteDouble

Writes a double value with the specified name.

WriteEffect

Writes a reference to the specified effect. The effect is registered within the internal hashtable for subsequent serialization.

WriteEnum

Writes the specified enum value.

WriteFloat

Writes a float value with the specified name.

WriteFloatArray

Writes the specified array.

WriteFont

Writes the specified font.

WriteGroup

Writes the specified group object.

WriteHashtable

Writes the specified hashtable.

WriteImage

Writes a reference to the specified image. The image is registered within the internal hashtable for subsequent serialization.

WriteInt

Writes an integer value with the specified name.

WriteItemReference

Writes a reference to the specified item with the specified name.

WriteLong

Writes a long value with the specified name.

WriteObject

Writes the specified object under the specified name.

WritePen

Writes the specified pen.

WritePointCollection

Writes the specified point collection.

WritePointCoordinates

Writes the specified List<Point>.

WritePointF

Overloaded.  

WriteRectangleF

Writes a Rect with the specified name.

WriteSByte

Write a 8-bit signed integer value with the specified name.

WriteShape

Writes the specified shape with the specified name.

WriteShort

Writes a short value with the specified name.

WriteSizeF

Writes a Size with the specified name.

WriteStream

Writes the specified stream.

WriteString

Writes a string value with the specified name.

WriteStringFormat

Writes the specified StringFormat object.

WriteStyle

Writes a reference to the specified style. The style is registered within the internal hashtable for subsequent serialization.

WriteSvg

Writes a reference to the specified SVG. The SVG is registered within the internal hashtable for subsequent serialization.

WriteTag

Writes the specified tag of the specified object.

WriteTheme

Writes the specified Theme object.

WriteThickness

Writes a Thickness with the specified name.

WriteTraits

Writes the specified traits hashtable.

WriteUInt

Writes an unsigned integer value with the specified name.

WriteULong

Writes an unsigned long value with the specified name.

WriteUShort

Writes an unsigned short value with the specified name.

 See Also