ControlCollection.IndexOf 方法 [C#]请参见
ControlCollection 类 | ControlCollection 成员 | System.Web.UI 命名空间 | Controls | ControlCollection 成员(Visual J# 语法) | C++ 托管扩展编程
要求
平台: Windows 2000, Windows XP Professional, Windows Server 2003 系列
语言
C#C++JScriptVisual Basic全部显示
检索集合中指定 Control 对象的索引。[Visual Basic]
Public Overridable Function IndexOf( _
ByVal value As Control _
) As Integer[C#]
public virtual int IndexOf(
Control value
);[C++]
public: virtual int IndexOf(
Control* value
);[JScript]
public function IndexOf(
value : Control
) : int;参数
value
为其返回索引的 Control 对象。
返回值
指定服务器控件的索引。如果服务器控件当前不是集合的成员,则返回 -1。备注
使用此方法确定 ControlCollection 对象中指定服务器控件的索引位置。要求
平台: Windows 2000, Windows XP Professional, Windows Server 2003 系列请参见
ControlCollection 类 | ControlCollection 成员 | System.Web.UI 命名空间 | Controls | ControlCollection 成员(Visual J# 语法) | C++ 托管扩展编程
要求
平台: Windows 2000, Windows XP Professional, Windows Server 2003 系列
语言
C#C++JScriptVisual Basic全部显示
检索集合中指定 Control 对象的索引。[Visual Basic]
Public Overridable Function IndexOf( _
ByVal value As Control _
) As Integer[C#]
public virtual int IndexOf(
Control value
);[C++]
public: virtual int IndexOf(
Control* value
);[JScript]
public function IndexOf(
value : Control
) : int;参数
value
为其返回索引的 Control 对象。
返回值
指定服务器控件的索引。如果服务器控件当前不是集合的成员,则返回 -1。备注
使用此方法确定 ControlCollection 对象中指定服务器控件的索引位置。要求
平台: Windows 2000, Windows XP Professional, Windows Server 2003 系列请参见
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货