ComponentOne Themes for WinForms
RegisterThemes Method

C1.Win.C1Themes.4 Assembly > C1.Win.C1Themes Namespace > C1ThemeController Class : RegisterThemes Method
The assembly to load/register themes from.
Loads all themes from an assembly, and registeres them for use by theme controllers in the current application.

This method scans all resources in the specified assembly, and selects those with names ending in ".c1theme" (case insensitive). If a theme cannot be loaded (e.g. due to a duplicate name or other error), it is skipped (i.e. no exception is thrown).

Syntax
'Declaration
 
Public Shared Function RegisterThemes( _
   ByVal assembly As System.Reflection.Assembly _
) As System.String()
public static System.string[] RegisterThemes( 
   System.Reflection.Assembly assembly
)

Parameters

assembly
The assembly to load/register themes from.

Return Value

The array of names of all loaded/registered themes.
See Also

Reference

C1ThemeController Class
C1ThemeController Members