Spread ASP.NET 18
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / StyleInfo Class / SameAppearance Method
StyleInfo object to compare to current StyleInfo object
Example


In This Topic
    SameAppearance Method
    In This Topic
    Compares a StyleInfo object's appearance with the current object's appearance.
    Syntax
    'Declaration
     
    
    Public Function SameAppearance( _
       ByVal info As StyleInfo _
    ) As Boolean
    'Usage
     
    
    Dim instance As StyleInfo
    Dim info As StyleInfo
    Dim value As Boolean
     
    value = instance.SameAppearance(info)
    public bool SameAppearance( 
       StyleInfo info
    )

    Parameters

    info
    StyleInfo object to compare to current StyleInfo object

    Return Value

    Boolean: true if appearance is identical; false otherwise
    Remarks

    The SameAppearance method compares the appearance settings of two StyleInfo objects.

    The method compares the following appearance settings:

    • BackColor
    • ForeColor
    • Font
    • HorizontalAlign
    • VerticalAlign
    • Margin
    • Border
    Example
    This example creates three objects, two StyleInfo objects and a SheetStyleProperty object. The ForeColor and Font properties of the first StyleInfo object are set, and the BackColor of the second. The second object is then merged with the first. Then a boolean value returns whether the BackColor property has, in fact, been set after the merge and, also, whether the two StyleInfo objects properties are all identical.
    See Also