menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StyleInfoPropertyWriteXmlEventArgs - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class StyleInfoPropertyWriteXmlEventArgs

    Provides data for the WriteXml event.

    Inheritance
    System.Object
    System.EventArgs
    SyncfusionEventArgs
    SyncfusionHandledEventArgs
    StyleInfoPropertyWriteXmlEventArgs
    Inherited Members
    SyncfusionEventArgs.ToString()
    SyncfusionHandledEventArgs.Handled
    System.EventArgs.Empty
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Styles
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public sealed class StyleInfoPropertyWriteXmlEventArgs : SyncfusionHandledEventArgs
    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 System.Xml.Serialization.XmlSerializer.Serialize(System.IO.TextWriter,System.Object) operation of the System.Xml.Serialization.XmlSerializer class.

    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
    [TraceProperty(true)]
    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved