Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Appearance Class / Merge Method / Merge(Object,Boolean) Method
Object whose appearance settings will be merged with the current object
Whether appearance settings are overridden in the current object
Example


In This Topic
    Merge(Object,Boolean) Method
    In This Topic
    Merges appearance settings of the specified object with the current object with the option to force a merge if the settings are defined in the current object.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function Merge( _
       ByVal obj As Object, _
       ByVal force As Boolean _
    ) As Boolean
    'Usage
     
    
    Dim instance As Appearance
    Dim obj As Object
    Dim force As Boolean
    Dim value As Boolean
     
    value = instance.Merge(obj, force)
    public virtual bool Merge( 
       object obj,
       bool force
    )

    Parameters

    obj
    Object whose appearance settings will be merged with the current object
    force
    Whether appearance settings are overridden in the current object

    Return Value

    Boolean: true if successful; false otherwise
    Remarks
    If you always want to restrict the merging of appearance settings to occur only if the settings are not defined in the current object, use the Merge(Object) 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