Search
XmlPersistContext Members
Constructors Fields Properties Methods
 


Contains methods that can help you serialize and deserialize WpfDiagram 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.

XmlDocument

Gets the underlying XML document.

XmlOptions

An XmlOptions object providing properties for customizing the XML serialization process.

 Public Methods

  Name Description

AddChildElement

Overloaded.  

FromRelativePath

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

InstantiateItem

Instantiates an item with the specified class id.

ReadAnchorPattern

Reads an AnchorPattern with the specified name.

ReadAnchorPoint

Reads an AnchorPoint with the specified name.

ReadBool

Overloaded.  

ReadBrush

Reads a Brush object with the specified name.

ReadByte

Reads a byte value with the specified name.

ReadChar

Reads a char value with the specified name.

ReadColor

Reads a color with the specified name.

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 with the specified name.

ReadEnum

Overloaded.  

ReadFloat

Overloaded.  

ReadFloatArray

Reads a double array with the specified name.

ReadFont

Reads a Font object with the specified name.

ReadFontFamily

Reads a FontFamily object with the specified name.

ReadFontStyle

Reads a FontStyle object with the specified name.

ReadFontUnit

Reads a FontUnit object with the specified name.

ReadGroup

Reads a group object with the specified name.

ReadHashtable

Reads a hash table object with the specified name.

ReadImage

Reads an System.Windows.Media.ImageSource 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

Reads a System.Windows.Media.Pen object with the specified name.

ReadPoint3D

Reads a Point3D object with the specified name.

ReadPointCollection

Reads a PointCollection object with the specified name.

ReadPointCoordinates

Reads a StylusPointCollection object with the specified name.

ReadPointF

Overloaded.  

ReadRectangleF

Reads a System.Windows.Rect object with the specified name.

ReadSByte

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

ReadShape

Overloaded.  

ReadShort

Reads a short value with the specified name.

ReadSizeF

Overloaded.  

ReadStream

Reads a stream with the specified name.

ReadString

Overloaded.  

ReadStringFormat

Reads a StringFormat 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.

ReadVector

Reads a Vector object with the specified name.

ReadVisioContent

Reads a Visio content with the specified name.

ReadXaml

Loads an object from its XAML representation.

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.

WriteAnchorPoint

Writes the specified anchor point.

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.

WriteFontFamily

Writes a FontFamily object with the specified name.

WriteFontStyle

Writes a FontStyle object with the specified name.

WriteFontUnit

Writes a FontUnit object with the specified name.

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.

WritePoint3D

Writes a Point3D with the specified name.

WritePointCollection

Writes the specified point collection.

WritePointCoordinates

Writes the specified StylusPointCollection.

WritePointF

Writes a Point with the specified name.

WriteRectangleF

Writes a RectangleF 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.

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.

WriteVector

Writes a Vector with the specified name.

WriteVisioContent

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

WriteXaml

Serializes an object to XAML.

 See Also