## List::BinarySearch(const T\&) const method


يبحث عن عنصر في قائمة مرتبة.

```cpp
int System::Collections::Generic::List<T>::BinarySearch(const T &item) const
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| item | const T\& | العنصر المراد البحث عنه. |

### ReturnValue

فهرس العنصر في القائمة المرتبة أو مكمل أقرب فهرس.

## انظر أيضًا

* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Font for C++](../../../)
## List::BinarySearch(const T\&, const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\&) const method


يبحث عن عنصر في قائمة مرتبة.

```cpp
int System::Collections::Generic::List<T>::BinarySearch(const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| item | const T\& | العنصر المراد البحث عنه. |
| comparer | const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\& | [Comparer](../../comparer/) للاستخدام. |

### ReturnValue

فهرس العنصر في القائمة المرتبة أو مكمل أقرب فهرس.

## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IComparer](../../icomparer/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Font for C++](../../../)
## List::BinarySearch(int, int, const T\&, const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\&) const method


يبحث عن عنصر في قائمة مرتبة.

```cpp
int System::Collections::Generic::List<T>::BinarySearch(int index, int count, const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| الفهرس | int | بداية النطاق. |
| count | int | حجم النطاق. |
| item | const T\& | العنصر المراد البحث عنه. |
| comparer | const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\& | [Comparer](../../comparer/) للاستخدام. |

### ReturnValue

فهرس العنصر في القائمة المرتبة أو مكمل أقرب فهرس.

## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IComparer](../../icomparer/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Font for C++](../../../)
