System::Collections::Generic::List::FindIndex 方法
List::FindIndex(int, int, System::Predicate<T>) method
查找符合特定谓词的元素。
int System::Collections::Generic::List<T>::FindIndex(int startIndex, int count, System::Predicate<T> match)
| 参数 | 类型 | 描述 |
|---|---|---|
| startIndex | int | 搜索开始的索引。 |
| count | int | 要遍历的元素数量。 |
| match | System::Predicate<T> | 用于检查元素的 Predicate。 |
ReturnValue
匹配元素的索引,若未找到则为 -1。
另见
- Typedef Predicate
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++
List::FindIndex(int, System::Predicate<T>) method
查找符合特定谓词的元素。
int System::Collections::Generic::List<T>::FindIndex(int startIndex, System::Predicate<T> match)
| 参数 | 类型 | 描述 |
|---|---|---|
| startIndex | int | 搜索开始的索引。 |
| match | System::Predicate<T> | 用于检查元素的 Predicate。 |
ReturnValue
匹配元素的索引,若未找到则为 -1。
另见
- Typedef Predicate
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++
List::FindIndex(System::Predicate<T>) method
查找符合特定谓词的元素。
int System::Collections::Generic::List<T>::FindIndex(System::Predicate<T> match)
| 参数 | 类型 | 描述 |
|---|---|---|
| match | System::Predicate<T> | 用于检查元素的 Predicate。 |
ReturnValue
匹配元素的索引,若未找到则为 -1。
另见
- Typedef Predicate
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++