Xceed Grid for WinForms v4.3 Documentation
CopyControlProperties Method


Xceed.UI.v1.4 Assembly > Xceed.UI Namespace > ThemedControl Class : CopyControlProperties Method
A reference to the System.Windows.Forms.Control to clone.
A reference to the cloned control.
The source and destination controls' type.
A string array containing the names of the properties whose values are to be excluded from the cloning process.
A control array containing the child controls who are to be excluded from the cloning process.
Copies the values of the properties from the source control to the cloned instance.
Syntax
'Declaration
 
Public Shared Sub CopyControlProperties( _
   ByVal source As Control, _
   ByVal destination As Control, _
   ByVal type As Type, _
   ByVal excludedPropertyNames() As String, _
   ByVal excludedControls() As Control _
) 
'Usage
 
Dim source As Control
Dim destination As Control
Dim type As Type
Dim excludedPropertyNames() As String
Dim excludedControls() As Control
 
ThemedControl.CopyControlProperties(source, destination, type, excludedPropertyNames, excludedControls)
public static void CopyControlProperties( 
   Control source,
   Control destination,
   Type type,
   string[] excludedPropertyNames,
   Control[] excludedControls
)

Parameters

source
A reference to the System.Windows.Forms.Control to clone.
destination
A reference to the cloned control.
type
The source and destination controls' type.
excludedPropertyNames
A string array containing the names of the properties whose values are to be excluded from the cloning process.
excludedControls
A control array containing the child controls who are to be excluded from the cloning process.
Requirements

Target Platforms: 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

Reference

ThemedControl Class
ThemedControl Members