Search
XmlPersistContext Members
Constructors Fields Methods
 


Contains methods that facilitate serializing and deserializing of objects 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

Indicates the latest format.

 Public Methods

  Name Description

addChildElement

Overloaded.  

getFileVersion

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

getIncludeUnalteredProperties

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

getXmlDocument

Gets the underlying XML document.

readBool

Overloaded.  

readBrush

Overloaded.  

readBrushList

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.

readDoubleList

Overloaded.  

readEnum

Overloaded.  

readFloat

Overloaded.  

readFloatArray

Reads a float array with the specified name.

readFont

Overloaded.  

readHashtable

Reads a hashtable with the specified name.

readImage

Reads an Image object with the specified name.

readInt

Overloaded.  

readLong

Reads a long value with the specified name.

readNullableDouble

Reads a nullable double value with the specified name.

readNullableEnum

Reads a nullable enum value with the specified name.

readObject

Reads an object with the specified name.

readPen

Overloaded.  

readPointF

Overloaded.  

readRectangleF

Reads a RectangleF object with the specified name.

readShort

Overloaded.  

readSizeF

Reads a SizeF object with the specified name.

readString

Overloaded.  

readThickness

Reads a Thickness object with the specified name.

setIncludeUnalteredProperties

Sets a value specifies whether properties that have their default value should be serialized to XML.

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.

writeBrushList

Writes the specified brushes.

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 with Colors.

writeDecimal

Write a decimal value with the specified name.

writeDictionary

Writes the specified Dictionary.

writeDouble

Overloaded.  

writeDoubleList

Writes the specified list of double values.

writeEnum

Writes the specified enum value.

writeFloat

Writes a float value with the specified name.

writeFloatArray

Writes the specified array with float values.

writeFont

Writes the specified Font.

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.

writeLong

Writes a long value with the specified name.

writeObject

Writes the specified object under the specified name.

writePen

Writes the specified Pen.

writePointF

Overloaded.  

writeRectangleF

Writes a RectangleF with the specified name.

writeSByte

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

writeShort

Writes a short value with the specified name.

writeSizeF

Writes a SizeF with the specified name.

writeString

Writes a string value with the specified name.

writeThickness

Writes a Thickness with the specified name.

 See Also