Spread ASP.NET 16
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Border Class / Serialize Method
XmlTextWriter object to which to save the object

In This Topic
    Serialize Method (Border)
    In This Topic
    Saves the object to XML.
    Public Function Serialize( _
       ByVal w As XmlTextWriter _
    ) As Boolean
    Dim instance As Border
    Dim w As XmlTextWriter
    Dim value As Boolean
    value = instance.Serialize(w)
    public bool Serialize( 
       XmlTextWriter w


    XmlTextWriter object to which to save the object

    Return Value

    Boolean: true if successful; false otherwise
    This method serializes the public properties and fields of the Border object.
    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