Spread ASP.NET 18
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / StyleInfo Class / GetAppearance Method / GetAppearance(Appearance,Boolean) Method
Appearance object to receive the appearance settings
Set to True to replace all settings, including existing settings, in the Appearance object with settings from this StyleInfo object. Set to False to only copy in settings from this object when there are not corresponding settings in the Appearance object.
Example


In This Topic
    GetAppearance(Appearance,Boolean) Method
    In This Topic
    Gets the appearance settings for the StyleInfo object, with the option to specify whether all settings are copied into the specified Appearance object.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetAppearance( _
       ByVal appearance As Appearance, _
       ByVal force As Boolean _
    ) As Appearance
    'Usage
     
    
    Dim instance As StyleInfo
    Dim appearance As Appearance
    Dim force As Boolean
    Dim value As Appearance
     
    value = instance.GetAppearance(appearance, force)
    public Appearance GetAppearance( 
       Appearance appearance,
       bool force
    )

    Parameters

    appearance
    Appearance object to receive the appearance settings
    force
    Set to True to replace all settings, including existing settings, in the Appearance object with settings from this StyleInfo object. Set to False to only copy in settings from this object when there are not corresponding settings in the Appearance object.

    Return Value

    Appearance object containing the updated appearance settings
    Remarks
    Set force to true to replace all settings, including existing settings, in the Appearance object with settings from this StyleInfo object. Set force to false to copy in only the settings from this object when there are not corresponding settings in the Appearance object.
    Example
    This example creates an Appearance object and two StyleInfo objects. The cinfo object passes its settings into the Appearance object, which is then used to adjust the settings for the info objects properties. That, in turn, is used to set the style for the spreadsheet.
    See Also