DiagramLite Programmer's Guide
XmlPersistContext Members
Constructors Fields Properties Methods
 


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

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

 Public Constructors

  Name Description

XmlPersistContext

Overloaded.  

 Public Fields

  Name Description

LatestFormat

Specifies the latest file format revision number.

NetDiagramMode

For internal use.

 Public Properties

  Name Description

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.

 Public Methods

  Name Description

AddChildElement

Overloaded.  

ReadAnchorPattern

Reads an AnchorPattern 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.

ReadControl

Loads a Control object.

ReadDecimal

Reads a decimal value with the specified name.

ReadDouble

Overloaded.  

ReadDoubleCollection

Loads a DoubleCollection.

ReadEffect

Overloaded.  

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.

ReadHashtable

Reads a hash 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

Reads a Pen object with the specified name.

ReadPointCollection

Reads a PointCollection 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

Overloaded.  

ReadShort

Reads a short value with the specified name.

ReadSizeF

Reads a Size object with the specified name.

ReadStream

Reads a stream with the specified name.

ReadString

Overloaded.  

ReadStringFormat

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

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.

WriteControl

Saves a user control hosted.

WriteDecimal

Write a decimal value with the specified name.

WriteDouble

Writes a double value with the specified name.

WriteDoubleCollection

Writes the specified array.

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.

WriteGroup

Writes the group of nodes attached to the specified node.

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.

WriteNodeConstraints

Writes the specified NodeConstraints object.

WriteObject

Writes the specified object under the specified name.

WritePen

Overloaded.  

WritePointCollection

Writes the specified point collection.

WritePointF

Overloaded.  

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.

WriteTag

Writes the specified tag of the specified object.

WriteTheme

Writes the specified Theme object.

WriteThickness

Writes a Thickness with the specified name.

WriteTraits

Used to save item's LayoutTraits.

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.

WriteXaml

Serializes an object to XAML.

 See Also

XmlPersistContext Class
MindFusion.Diagramming Namespace