Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Styles Class / GetStyle Method / GetStyle(String,Boolean) Method
A string value indicates the style name.
if set to true, a new INamedStyle will be created if it doesn't exist.


In This Topic
    GetStyle(String,Boolean) Method
    In This Topic
    Gets an INamedStyle object from the specified style name.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetStyle( _
       ByVal styleName As String, _
       Optional ByVal create As Boolean _
    ) As IStyle
    'Usage
     
    
    Dim instance As Styles
    Dim styleName As String
    Dim create As Boolean
    Dim value As IStyle
     
    value = instance.GetStyle(styleName, create)
    public IStyle GetStyle( 
       string styleName,
       bool create
    )

    Parameters

    styleName
    A string value indicates the style name.
    create
    if set to true, a new INamedStyle will be created if it doesn't exist.

    Return Value

    An INamedStyle object represents the named style.
    Remarks
    If new named style is created, all its settings are copied from Normal style.
    See Also