'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.