wx.XmlSerializer Class Reference

List of all members.

Public Member Functions

System.Xml.Schema.XmlSchema GetSchema ()
void ReadXml (System.Xml.XmlReader reader)
void WriteXml (System.Xml.XmlWriter writer)
 XmlSerializer (Colour colour)
 XmlSerializer (Font font)
 XmlSerializer ()

Properties

Colour Colour [get, set]
Font Font [get, set]


Detailed Description

Service class that implements serialization of colours and fonts into XML. Create an instance encapsulating a font or a colour to serialize or call ReadXml() to deserialize. Example:
     // This writes a font before writing a colour into an xmlWriter.
     XmlSerializer serializer=new XmlSerializer(font);
     serializer.WriteXml(xmlWriter);
     serializer.Colour=colour;
     serializer.WriteXml(xmlWriter);
     
     // this reads a colour after a font from an xmlReader.
     serializer.ReadXml(xmlReader);
     font=serializer.Font;
     serializer.ReadXml(xmlReader);
     colour=serializer.Colour;

Constructor & Destructor Documentation

wx.XmlSerializer.XmlSerializer (  ) 

Creates an instance without data. Serialization will be a NOP.

wx.XmlSerializer.XmlSerializer ( Font  font  ) 

Creates an instance referring to a font for serialization.

wx.XmlSerializer.XmlSerializer ( Colour  colour  ) 

Creates an instance referring to a colour for serialization.


Member Function Documentation

System.Xml.Schema.XmlSchema wx.XmlSerializer.GetSchema (  ) 

Not yet implemented.

void wx.XmlSerializer.ReadXml ( System.Xml.XmlReader  reader  ) 

This will either read a colour or a font from reader and provide the result as Colour or Font. If reader does not provide an appropriate serialization, then Colour and Font will be null.

void wx.XmlSerializer.WriteXml ( System.Xml.XmlWriter  writer  ) 

Writes the data to writer. The data may either be a colour or a font that has been set by the CTor or assignment to an appropriate property. Data null will cause this to be a NOP.


Property Documentation

Colour wx.XmlSerializer.Colour [get, set]

Gets or sets a colour as data. Use this property to retrieve a Colour that has been read by ReadXml() or to set a font to be written by WriteXml().

Font wx.XmlSerializer.Font [get, set]

Gets or sets a font as data. Use this property to retrieve a font that has been read by ReadXml() or to set a font to be written by WriteXml().


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads