Version

SynchronizeComponentRoleSettingsOnChildren(Control,Boolean,String,Boolean) Method

Helper method to synchronize component role settings on child controls
Syntax
'Declaration
 
Public Overloads Shared Sub SynchronizeComponentRoleSettingsOnChildren( _
   ByVal parent As Control, _
   ByVal enableApplicationStyling As Boolean, _
   ByVal styleSetName As String, _
   ByVal recursive As Boolean _
) 
public static void SynchronizeComponentRoleSettingsOnChildren( 
   Control parent,
   bool enableApplicationStyling,
   string styleSetName,
   bool recursive
)

Parameters

parent
The parent whose children will be synchronized.
enableApplicationStyling
True to enable application styling
styleSetName
The name of the styleset to use.
recursive
If true will call this method recursively on the child controls, effectively synchronizing all descendants.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also