ComponentOne Themes for WinForms
ApplyThemeToObject Method (C1Theme)

C1.Win.C1Themes.4 Assembly > C1.Win.C1Themes Namespace > C1Theme Class : ApplyThemeToObject Method
The object to apply the theme to.
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 Function ApplyThemeToObject( _
   ByVal obj As System.Object _
) As System.Boolean
public System.bool ApplyThemeToObject( 
   System.object obj
)

Parameters

obj
The object to apply the theme to.

Return Value

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

Reference

C1Theme Class
C1Theme Members