Spread ASP.NET 18
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Appearance Class / Deserialize Method
XmlNodeReader from which to load the object
Example


In This Topic
    Deserialize Method (Appearance)
    In This Topic
    Loads the object from XML.
    Syntax
    'Declaration
     
    
    Public Overridable Function Deserialize( _
       ByVal r As XmlNodeReader _
    ) As Boolean
    'Usage
     
    
    Dim instance As Appearance
    Dim r As XmlNodeReader
    Dim value As Boolean
     
    value = instance.Deserialize(r)
    public virtual bool Deserialize( 
       XmlNodeReader r
    )

    Parameters

    r
    XmlNodeReader from which to load the object

    Return Value

    Boolean: true if successful; false otherwise
    Remarks
    This method deserializes 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