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

Definicja

Porównuje dwa obiekty i zwraca wartość wskazującą, czy jedna jest mniejsza, równa lub większa niż druga.

 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

Wpis do porównania

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

Wpis do porównania.

Zwraca

Int32

Liczba całkowita ze znakiem wskazująca względne wartości x i y, jak pokazano w poniższej tabeli.

Wartość Znaczenie
Mniej niż zero x wartość jest mniejsza niż y.
Zero x równa ysię .
Większe od zera x wartość jest większa niż y.

Implementuje

Dotyczy