Class StyleInfoPropertyWriteXmlEventArgs
Provides data for the WriteXml event.
Inherited Members
Namespace: Syncfusion.UI.Xaml.CellGrid.Styles
Assembly: Syncfusion.SfCellGrid.UWP.dll
Syntax
public sealed class StyleInfoPropertyWriteXmlEventArgs : GridHandledEventArgs
Remarks
The StyleInfoPropertyWriteXmlEventArgs is used to serialize a property of a
StyleInfoStore object. The WriteXml event occurs whenever a property
is serialized to an XML stream during an
If you handle this event, you set Handled to True. Handling this event allows you to customize the way the object is serialized or skip serialization.
This event allows you to implement a different serialization mechanism if many style objects reference and share the same object, (e.g. if you assign a DataSet to several objects' DataSource property). With such a scenario, you could write out a identifier and when the property is deserialized from an XML stream, you could reconstruct a reference to a datasource object based on the identifier.
Constructors
StyleInfoPropertyWriteXmlEventArgs(XmlWriter, StyleInfoStore, StyleInfoProperty)
Initializes a new StyleInfoPropertyWriteXmlEventArgs object.
Declaration
public StyleInfoPropertyWriteXmlEventArgs(XmlWriter writer, StyleInfoStore store, StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | The System.Xml.XmlWriter for the XML stream. |
StyleInfoStore | store | The style object that is being serialized. |
StyleInfoProperty | sip | The property that is being serialized. |
Properties
Sip
Returns the property that is being serialized. Call GetValue(StyleInfoProperty) of the Store to get the value for this property.
Declaration
public StyleInfoProperty Sip { get; }
Property Value
Type |
---|
StyleInfoProperty |
Store
Returns the style object that is being serialized.
Declaration
public StyleInfoStore Store { get; }
Property Value
Type |
---|
StyleInfoStore |
Writer
Returns the System.Xml.XmlWriter for the XML stream.
Declaration
public XmlWriter Writer { get; }
Property Value
Type |
---|
System.Xml.XmlWriter |