Themes for WinForms | ComponentOne
C1.Win.C1Themes.4.5.2 Assembly / C1.Win.C1Themes Namespace / C1ThemeController Class / RegisterTheme Method / RegisterTheme(Stream,C1ThemeFormat) Method
A stream containing the theme to load/register.
The theme persitence format to use.

In This Topic
    RegisterTheme(Stream,C1ThemeFormat) Method
    In This Topic
    Loads a theme from a stream, and registeres it for use by theme controllers in the application.

    After this method completes, the theme can be set via ApplicationTheme and Theme properties.

    his method throws an exception if a theme with same name has already been registered.

    Syntax
    'Declaration
     
    Public Overloads Shared Function RegisterTheme( _
       ByVal stream As System.IO.Stream, _
       ByVal format As C1ThemeFormat _
    ) As System.String
    public static System.string RegisterTheme( 
       System.IO.Stream stream,
       C1ThemeFormat format
    )

    Parameters

    stream
    A stream containing the theme to load/register.
    format
    The theme persitence format to use.

    Return Value

    A name of registered theme.
    See Also