Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Appearance Class / Serialize Method
XmlTextWriter object to which to save the object
Example


In This Topic
    Serialize Method (Appearance)
    In This Topic
    Saves the object to XML.
    Syntax
    'Declaration
     
    
    Public Overridable Function Serialize( _
       ByVal w As XmlTextWriter _
    ) As Boolean
    'Usage
     
    
    Dim instance As Appearance
    Dim w As XmlTextWriter
    Dim value As Boolean
     
    value = instance.Serialize(w)
    public virtual bool Serialize( 
       XmlTextWriter w
    )

    Parameters

    w
    XmlTextWriter object to which to save the object

    Return Value

    Boolean: true if successful; false otherwise
    Remarks
    This method serializes the public properties and fields of the Appearance object.
    Example
    This example creates a new Appearance object, sets the BackColor, ForeColor, Font, HorizontalAlign and VerticalAlign properties, then applies those settings to an instance of a Cell object. In the click events of two buttons the object can be either deserialized or serialized. This code does the same thing as Serializer.SaveObject and Serializer.LoadObject, and works for any object that implements ISerializeSupport.
    See Also