Search
XmlPersistContext Members
Constructors Fields Properties Methods
 


Contains methods that can help you serialize and deserialize MindFusion.Diagramming for .NET MAUI items to and 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

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. Adds a new child node to another node.

ReadAnchorPattern

Reads an AnchorPattern with the specified name.

ReadBool

Overloaded. Reads a boolean value with a specified name.

ReadBrush

Overloaded. Reads a Brush object with a specified name.

ReadByte

Reads a byte value with the specified name.

ReadChar

Reads a char value with the specified name.

ReadColor

Overloaded. Reads a color with a specified name.

ReadColorArray

Reads a color array with the specified name.

ReadDecimal

Reads a decimal value with the specified name.

ReadDouble

Overloaded. Reads a double value with a specified name.

ReadDoubleArray

Reads a double array with the specified name.

ReadEffect

Overloaded. Reads a NodeEffect object with the specified name.

ReadEnum

Overloaded. Reads an enum value with a specified name.

ReadFloat

Overloaded. Reads a float value with a specified name.

ReadFloatArray

Reads a float array with the specified name.

ReadFont

Overloaded. Reads a Font object with a specified name.

ReadGroup

Reads a group object with the specified name.

ReadHashtable

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

ReadImage

Reads an IImage object with the specified name.

ReadInt

Overloaded. Reads an integer value with the specified name.

ReadItemReference

Overloaded. Reads an item reference from an element.

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 Pen object with a specified name.

ReadPoint

Overloaded. Reads a Point object.

ReadPointCollection

Reads a PointCollection object with the specified name.

ReadPointCoordinates

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

ReadRectangle

Reads a Rectangle 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. Reads a short value with a specified name.

ReadSize

Reads a Size object with the specified name.

ReadStream

Reads a stream with the specified name.

ReadString

Overloaded. Reads a string value with the specified name.

ReadStringFormat

Overloaded. Reads a StringFormat object with the specified name.

ReadStyle

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

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.

WriteDoubleArray

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.

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.

WriteImageAsync

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.

WritePoint

Overloaded. Writes a Point object.

WritePointCollection

Writes the specified point collection.

WritePointCoordinates

Writes the specified List<PointF>.

WriteRectangle

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

WriteSize

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.

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