Search
XmlContext Members
Constructors Fields Methods
 


Contains methods that help serializing and deserializing complex objects to and from XML documents.

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

 Public Constructors

  Name Description

XmlContext

Initializes a new instance of the XmlContext class.

 Public Fields

  Name Description

LatestFormat

Specifies the latest file format revision number.

 Public Methods

  Name Description

addChildElement

Overloaded. Adds a new child node with the specified name to the specified parent node.

element

Overloaded.  

elements

 

getVersion

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

isEmpty

 

loadWorksheet

Reads a worksheet from the specified XML element.

readBool

Overloaded. Reads a boolean value with the specified name.

readBoolAttribute

 

readBrush

Overloaded. 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 value from the element with the specified name.

readColorArray

Reads a color array with the specified name.

readColumnTag

Reads the tag for the specified column.

readDecimal

Reads a decimal value with the specified name.

readDouble

Reads a double value with the specified name.

readEnum

Reads an enumeration object from the element with the specified name.

readFloat

Overloaded. Reads a float value with the specified name.

readFloatArray

Reads a float array with the specified name.

readImage

Reads an Image object with the specified name.

readInt

Overloaded. Reads an integer value with the specified name.

readLong

Reads a long value with the specified name.

readMeasure

Reads a Measure value from the element with the specified name.

readObject

Reads an object with the specified name.

readPointF

Overloaded. Reads a Point2D object.

readRectangle

Reads a Rectangle value from the element with the specified name.

readRowTag

Reads the tag for the specified row.

readSByte

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

readShort

Overloaded. Reads a short value with the specified name.

readString

Overloaded. Reads a string value with the specified name.

readStringAttribute

 

readTag

Reads the tag for the specified worksheet.

saveWorksheet

Saves the specified worksheet to the specified XML element.

writeBool

 

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 object as an XML element with the specified name and the specified parent.

writeColorArray

Writes the specified array.

writeColumnTag

Writes the specified tag of the specified column.

writeDashStyle

 

writeDecimal

Write a decimal value with the specified name.

writeDouble

 

writeEnum

Writes the specified Enumeration as an XML element with the specified name and the specified parent.

writeFloat

Writes a float value with the specified name.

writeFloatArray

Writes the specified array.

writeFloatAttribute

Writes a float value with the specified name.

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.

writeMeasure

Writes the specified Measure object as an XML element with the specified name and the specified parent.

writeObject

Writes the specified object under the specified name.

writePointF

Overloaded. Writes a Point2D object.

writeRectangle

Writes the specified Rectangle object as an XML element with the specified name and the specified parent.

writeRowTag

Writes the specified tag of the specified row.

writeSByte

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

writeShort

Writes a short value with the specified name.

writeString

Writes a string value with the specified name.

writeTag

Writes the specified tag of the specified worksheet.

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