Share via


UIElementCollection.IList.IndexOf(Object) 方法

定義

這個類型或成員支援 Windows Presentation Foundation (WPF) 基礎結構,而且不能從程式碼直接使用。 如需這個成員的說明,請參閱 IndexOf(Object)

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

參數

value
Object

要在清單中尋找的物件

傳回

Int32

如果可在清單中找到則為 value 的索引,否則為 -1。

實作

適用於

另請參閱