ComboBox.ObjectCollection.IComparer<ComboBox.ObjectCollection.Entry>.Compare Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
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
Parameters
- entry1
- System.Windows.Forms.ComboBox.ObjectCollection.Entry
The entry to be compared
- entry2
- System.Windows.Forms.ComboBox.ObjectCollection.Entry
The entry to compare with.
Returns
A signed integer that indicates the relative values of x
and y
, as shown in the following table.
Value | Meaning |
---|---|
Less than zero | x is less than y .
|
Zero | x equals y .
|
Greater than zero | x is greater than y .
|
Implements
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET