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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridFontInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

56451 Feb 15,2007 09:45 AM UTC Feb 15,2007 03:03 PM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 15, 2007 09:45 AM UTC

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 03:03 PM UTC

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.

Warning Icon 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.Close Icon

;