Themes for WinForms | ComponentOne
C1.Win.C1Themes.4.5.2 Assembly / C1.Win.C1Themes Namespace / C1ThemeController Class / GetThemeByName Method
The name of the theme to get.
Indicates whether an exception should be thrown if the specified theme cannot be found.

In This Topic
    GetThemeByName Method (C1ThemeController)
    In This Topic
    Retrieves a theme registered with the application, by its name.
    Syntax
    'Declaration
     
    Public Shared Function GetThemeByName( _
       ByVal themeName As System.String, _
       ByVal throwException As System.Boolean _
    ) As C1Theme
    public static C1Theme GetThemeByName( 
       System.string themeName,
       System.bool throwException
    )

    Parameters

    themeName
    The name of the theme to get.
    throwException
    Indicates whether an exception should be thrown if the specified theme cannot be found.

    Return Value

    The theme with the specified name, or null if a matching theme could not be found while throwException is false.
    See Also