We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GridFontInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

56451 Feb 15,2007 04:45 AM Feb 15,2007 10:03 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 15, 2007 04:45 AM

Hi,

I am wondering if it is possible to serialize a GridFontInfo object. I have tried the WriteXml method, but I always get an empty string. Can you show me a small example how to serialize that object type?

Cheers,
Tom

Administrator [Syncfusion]
Replied On February 15, 2007 10:03 AM

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.zip

Also refer to attached document for more details.
Serialize.zip

Best regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;