Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TypeConverter.SortProperties Method

Sorts a collection of properties.

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

protected PropertyDescriptorCollection SortProperties (
	PropertyDescriptorCollection props,
	string[] names
)
protected PropertyDescriptorCollection SortProperties (
	PropertyDescriptorCollection props, 
	String[] names
)
protected function SortProperties (
	props : PropertyDescriptorCollection, 
	names : String[]
) : PropertyDescriptorCollection
Not applicable.

Parameters

props

A PropertyDescriptorCollection that has the properties to sort.

names

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

Return Value

A PropertyDescriptorCollection that contains the sorted properties.

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 a null reference (Nothing in Visual Basic), all the properties in the collection are sorted alphabetically.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

Show:
© 2014 Microsoft