Themes for WinForms | ComponentOne
C1.Win.C1Themes.4.8 Assembly / C1.Win.C1Themes Namespace / C1ThemeController Class / SetTheme Method
The object on which to set the theme name.
The name of the theme.

In This Topic
    SetTheme Method (C1ThemeController)
    In This Topic
    Sets a theme name on an object.
    Syntax
    'Declaration
     
    Public Sub SetTheme( _
       ByVal control As System.Object, _
       ByVal value As System.String _
    ) 
    public void SetTheme( 
       System.object control,
       System.string value
    )

    Parameters

    control
    The object on which to set the theme name.
    value
    The name of the theme.
    Exceptions
    ExceptionDescription
    The exception that is thrown when one of the arguments provided to a method is not valid.
    Remarks
    System.ArgumentException will be thrown if the control is null or C1Theme can't be applied for the control.
    See Also