TabControl.TabPageCollection.IList.Contains(Object) 方法

定義

判斷指定的 TabPage 控制項是否在 TabControl.TabPageCollection 中。

 virtual bool System.Collections.IList.Contains(System::Object ^ page) = System::Collections::IList::Contains;
bool IList.Contains (object page);
bool IList.Contains (object? page);
abstract member System.Collections.IList.Contains : obj -> bool
override this.System.Collections.IList.Contains : obj -> bool
Function Contains (page As Object) As Boolean Implements IList.Contains

參數

page
Object

要在集合中找出的物件。

傳回

Boolean

如果指定的物件為集合中的 TabPage,則為 true,否則為 false

實作

備註

這個成員是明確介面成員實作, 只有在 TabControl.TabPageCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

適用於