Initializes a new instance of the PropertyDescriptorCollection class.
[Visual Basic] Public Sub New( _ ByVal properties() As PropertyDescriptor _ ) [C#] public PropertyDescriptorCollection( PropertyDescriptor[] properties ); [C++] public: PropertyDescriptorCollection( PropertyDescriptor* properties[] ); [JScript] public function PropertyDescriptorCollection( properties : PropertyDescriptor[] );
The following example creates a new PropertyDescriptorCollection using the events on Button1. It assumes that Button1 has been instantiated on a form.
[Visual Basic]
Dim properties As PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(Button1)
PropertyDescriptorCollection Class | PropertyDescriptorCollection Members | System.ComponentModel Namespace | PropertyDescriptor | TypeDescriptor