ComboBox.ObjectCollection.IComparer<ComboBox.ObjectCollection>.Compare Metoda

Definice

Porovná dva objekty a vrátí hodnotu označující, zda je jedna menší, rovna nebo větší než druhá.

 virtual int System.Collections.Generic.IComparer<System.Windows.Forms.ComboBox.ObjectCollection.Entry>.Compare(System::Windows::Forms::ComboBox::ObjectCollection::Entry ^ entry1, System::Windows::Forms::ComboBox::ObjectCollection::Entry ^ entry2) = System::Collections::Generic::IComparer<System::Windows::Forms::ComboBox::ObjectCollection::Entry ^>::Compare;
int IComparer<ComboBox.ObjectCollection.Entry>.Compare (System.Windows.Forms.ComboBox.ObjectCollection.Entry entry1, System.Windows.Forms.ComboBox.ObjectCollection.Entry entry2);
abstract member System.Collections.Generic.IComparer<System.Windows.Forms.ComboBox.ObjectCollection.Entry>.Compare : System.Windows.Forms.ComboBox.ObjectCollection.Entry * System.Windows.Forms.ComboBox.ObjectCollection.Entry -> int
override this.System.Collections.Generic.IComparer<System.Windows.Forms.ComboBox.ObjectCollection.Entry>.Compare : System.Windows.Forms.ComboBox.ObjectCollection.Entry * System.Windows.Forms.ComboBox.ObjectCollection.Entry -> int
Function Compare (entry1 As ComboBox.ObjectCollection.Entry, entry2 As ComboBox.ObjectCollection.Entry) As Integer Implements IComparer(Of ComboBox.ObjectCollection.Entry).Compare

Parametry

entry1
System.Windows.Forms.ComboBox.ObjectCollection.Entry

Položka, která se má porovnat

entry2
System.Windows.Forms.ComboBox.ObjectCollection.Entry

Položka, která se má porovnat.

Návraty

Int32

Celé číslo se znaménkem, které označuje relativní hodnoty x a y, jak je znázorněno v následující tabulce.

Hodnota Význam
Menší než nula x je menší než y.
Žádnou xyrovná se .
Větší než nula x je větší než y.

Implementuje

Platí pro