[]
        
(Showing Draft Content)

C1.Win.Themes.C1ThemeController.GetThemeByName

GetThemeByName Method

GetThemeByName(string, bool)

Retrieves a theme registered with the application, by its name.

Declaration
public static C1Theme GetThemeByName(string themeName, bool throwException)
Parameters
Type Name Description
string themeName

The name of the theme to get.

bool throwException

Indicates whether an exception should be thrown if the specified theme cannot be found.

Returns
Type Description
C1Theme

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