TypeConverterSortProperties Method
 

Sorts a collection of properties.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

Syntax
protected PropertyDescriptorCollection SortProperties(
	PropertyDescriptorCollection props,
	string[] names
)
protected:
PropertyDescriptorCollection^ SortProperties(
	PropertyDescriptorCollection^ props,
	array<String^>^ names
)
member SortProperties : 
        props:PropertyDescriptorCollection *
        names:string[] -> PropertyDescriptorCollection
Protected Function SortProperties (
	props As PropertyDescriptorCollection,
	names As String()
) As PropertyDescriptorCollection

Parameters

props
Type:

A PropertyDescriptorCollection that has the properties to sort.

names
Type:

An array of names in the order you want the properties to appear in the collection.

Return Value

Type:

A PropertyDescriptorCollection that contains the sorted properties.

Remarks

All properties in the collection that are not already in the array of names are added alphabetically to the end. If the names parameter is an empty array or null, all the properties in the collection are sorted alphabetically.

Version Information
.NET Framework
Available since 1.1
Return to top