Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Appearance Class / Merge Method / Merge(Object) Method
Object whose appearance settings are merged with the current object
Example


In This Topic
    Merge(Object) Method
    In This Topic
    Merges appearance settings of the specified object with the current object.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function Merge( _
       ByVal obj As Object _
    ) As Boolean
    'Usage
     
    
    Dim instance As Appearance
    Dim obj As Object
    Dim value As Boolean
     
    value = instance.Merge(obj)
    public virtual bool Merge( 
       object obj
    )

    Parameters

    obj
    Object whose appearance settings are merged with the current object

    Return Value

    Boolean: true if successful; false otherwise
    Remarks

    Each appearance setting is copied from the specified object to the current object only if the setting is not defined in the current object.

    If you want the option to force the settings to be merged, even if the setting is defined in the current object, use the Merge(Object,Boolean) method.

    Example
    This example creates two Appearance objects and a Cell object. Several properties are set for the first Appearance object, and they are subsequently merged into the second instance. The properties are then applied from the second Appearance object to the Cell objects corresponding properties. The BackColor property of the Appearance object is then queried to see if it has been defined, and the result is returned to a text box.
    See Also