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 接口时使用。

适用于