Themes for WinForms | ComponentOne
C1.Win.C1Themes.4.8 Assembly / C1.Win.C1Themes Namespace / C1ThemeController Class / ApplyThemeToObject Method
The object to apply the theme to.
The theme to apply.

In This Topic
    ApplyThemeToObject Method (C1ThemeController)
    In This Topic
    Applies a theme to an object.

    The target object must be either a C1 control supporting themes, or a standard control (such as Button, Label etc) for which basic theming is provided by this library.

    Syntax
    'Declaration
     
    Public Shared Function ApplyThemeToObject( _
       ByVal obj As System.Object, _
       ByVal theme As C1Theme _
    ) As System.Boolean
    public static System.bool ApplyThemeToObject( 
       System.object obj,
       C1Theme theme
    )

    Parameters

    obj
    The object to apply the theme to.
    theme
    The theme to apply.

    Return Value

    True of the theme was successfully applied, false otherwise (i.e. if the object does not support theming).
    See Also