PropertyDescriptorCollection.Sort Metod

Definition

Sorterar medlemmarna i den här samlingen.

Överlagringar

Name Description
Sort()

Sorterar medlemmarna i den här samlingen med standardsortering för den här samlingen, som vanligtvis är alfabetisk.

Sort(IComparer)

Sorterar medlemmarna i den här samlingen med den angivna IComparer.

Sort(String[])

Sorterar medlemmarna i den här samlingen. Den angivna ordningen tillämpas först, följt av standardsortering för den här samlingen, som vanligtvis är alfabetisk.

Sort(String[], IComparer)

Sorterar medlemmarna i den här samlingen. Den angivna ordningen tillämpas först, följt av sorteringen med den angivna IComparer.

Sort()

Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs

Sorterar medlemmarna i den här samlingen med standardsortering för den här samlingen, som vanligtvis är alfabetisk.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort();
public virtual System.ComponentModel.PropertyDescriptorCollection Sort();
abstract member Sort : unit -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort () As PropertyDescriptorCollection

Returer

En ny PropertyDescriptorCollection som innehåller de sorterade PropertyDescriptor objekten.

Gäller för

Sort(IComparer)

Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs

Sorterar medlemmarna i den här samlingen med den angivna IComparer.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort(System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort(System.Collections.IComparer? comparer);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort(System.Collections.IComparer comparer);
abstract member Sort : System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort (comparer As IComparer) As PropertyDescriptorCollection

Parametrar

comparer
IComparer

En jämförelse som ska användas för att sortera objekten i den PropertyDescriptor här samlingen.

Returer

En ny PropertyDescriptorCollection som innehåller de sorterade PropertyDescriptor objekten.

Se även

Gäller för

Sort(String[])

Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs

Sorterar medlemmarna i den här samlingen. Den angivna ordningen tillämpas först, följt av standardsortering för den här samlingen, som vanligtvis är alfabetisk.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort(string[]? names);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort(string[] names);
abstract member Sort : string[] -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : string[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort (names As String()) As PropertyDescriptorCollection

Parametrar

names
String[]

En matris med strängar som beskriver i vilken ordning objekten ska sorteras i den PropertyDescriptor här samlingen.

Returer

En ny PropertyDescriptorCollection som innehåller de sorterade PropertyDescriptor objekten.

Exempel

I följande kodexempel definieras sorteringsordningen Sort för metoden. PropertyDescriptorCollection Om innehåller fyra PropertyDescriptor objekt med namnen A, B, Coch D, sorteras egenskaperna myNewColl för i ordningen D, B, Aoch C.

array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})

Se även

Gäller för

Sort(String[], IComparer)

Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs
Källa:
PropertyDescriptorCollection.cs

Sorterar medlemmarna i den här samlingen. Den angivna ordningen tillämpas först, följt av sorteringen med den angivna IComparer.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names, System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort(string[]? names, System.Collections.IComparer? comparer);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort(string[] names, System.Collections.IComparer comparer);
abstract member Sort : string[] * System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : string[] * System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort (names As String(), comparer As IComparer) As PropertyDescriptorCollection

Parametrar

names
String[]

En matris med strängar som beskriver i vilken ordning objekten ska sorteras i den PropertyDescriptor här samlingen.

comparer
IComparer

En jämförelse som ska användas för att sortera objekten i den PropertyDescriptor här samlingen.

Returer

En ny PropertyDescriptorCollection som innehåller de sorterade PropertyDescriptor objekten.

Exempel

I följande kodexempel definieras sorteringsordningen Sort för metoden. PropertyDescriptorCollection Om innehåller fyra PropertyDescriptor objekt med namnen A, B, Coch D, sorteras egenskaperna myNewColl för i ordningen D, B, Aoch C.

array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})

Se även

Gäller för