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

In This Topic
    RegisterTheme(Stream) 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 _
    ) As System.String
    public static System.string RegisterTheme( 
       System.IO.Stream stream
    )

    Parameters

    stream
    A stream containing the theme to load/register.

    Return Value

    A name of registered theme.
    See Also