[]
        
(Showing Draft Content)

C1.Win.Themes.C1ThemeController.ApplyThemeToObject

ApplyThemeToObject Method

ApplyThemeToObject(object, C1Theme)

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.

Declaration
public static bool ApplyThemeToObject(object obj, C1Theme theme)
Parameters
Type Name Description
object obj

The object to apply the theme to.

C1Theme theme

The theme to apply.

Returns
Type Description
bool

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