Compartir a través de


ComboBox.ObjectCollection.IComparer<ComboBox.ObjectCollection>.Compare Método

Definición

Compara dos objetos y devuelve un valor que indica si uno de ellos es menor, igual o mayor que el otro.

 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

Parámetros

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

Entrada que se va a comparar

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

Entrada con la que se va a comparar.

Devoluciones

Int32

Entero con signo que indica los valores relativos de x y y, como se muestra en la tabla siguiente.

Valor Significado
Menor que cero x es menor que y.
Cero x es igual que y.
Mayor que cero x es mayor que y.

Implementaciones

Se aplica a