ComponentOne Themes for WinForms
ApplyThemeToControlTree Method (C1Theme)

C1.Win.C1Themes.4 Assembly > C1.Win.C1Themes Namespace > C1Theme Class : ApplyThemeToControlTree Method
The root control to apply the theme to.
Predicate which, if specified, allows to break theme application on certain nodes in the tree if it returns false.
Recursively applies a theme to a control and its children. Controls that do not support themes are ignored (but the theme is applied to their children).
Syntax
'Declaration
 
Public Sub ApplyThemeToControlTree( _
   ByVal root As System.Windows.Forms.Control, _
   Optional ByVal applyThemeToSubTree As System.Predicate(Of Control) _
) 
public void ApplyThemeToControlTree( 
   System.Windows.Forms.Control root,
   System.Predicate<Control> applyThemeToSubTree
)

Parameters

root
The root control to apply the theme to.
applyThemeToSubTree
Predicate which, if specified, allows to break theme application on certain nodes in the tree if it returns false.
See Also

Reference

C1Theme Class
C1Theme Members