Themes for WinForms | ComponentOne
C1.Win.C1Themes.4.5.2 Assembly / C1.Win.C1Themes Namespace / C1ThemeCollection Class / TryGetValue Method
The name of the theme to get.
OUT: the theme with the specified name, or null if none could be found.

In This Topic
    TryGetValue Method (C1ThemeCollection)
    In This Topic
    Retrieves a theme by its name.
    Syntax
    'Declaration
     
    Public Function TryGetValue( _
       ByVal key As System.String, _
       ByRef theme As C1Theme _
    ) As System.Boolean
    public System.bool TryGetValue( 
       System.string key,
       out C1Theme theme
    )

    Parameters

    key
    The name of the theme to get.
    theme
    OUT: the theme with the specified name, or null if none could be found.

    Return Value

    True if the theme was found, false otherwise.
    See Also