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

Definição

Compara dois objetos e retorna um valor que indica se um é menor que, igual ou maior que o outro.

 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);
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

A entrada a ser comparada

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

A entrada com a qual comparar.

Retornos

Um inteiro com sinal que indica os valores relativos de x e y, conforme mostrado na tabela a seguir.

Valor Significado
Menor que zero x é menor que y.
Zero x igual a y.
Maior que zero x é maior que y.

Implementações

Aplica-se a