ComponentOne Themes for WinForms
GetThemeByName Method

C1.Win.C1Themes.4 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.
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

Reference

C1ThemeController Class
C1ThemeController Members