Themes for WinForms | ComponentOne
C1.Win.Themes.8 Assembly / C1.Win.Themes Namespace / C1ThemeController Class / RegisterThemes Method
The assembly to load/register themes from.

In This Topic
    RegisterThemes Method (C1ThemeController)
    In This Topic
    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