Hi Tom,
If you want to write the only GridFontInfo object to XML, then you can use the below code snippet.
private void WriteFontInfoToXml(GridStyleInfo style, string Filename)
{
XmlTextWriter xw = new XmlTextWriter(Filename, System.Text.Encoding.Default);
xw.Formatting = Formatting.Indented;
xw.WriteStartElement("GridFontInfo");
xw.WriteElementString("Font",style.Font.ToString());
xw.WriteEndElement();
xw.Close();
}
Here is a minimal sample for implementation.
StyleSerialize.zipAlso refer to attached document for more details.
Serialize.zipBest regards,
Haneef