TableLayoutRowStyleCollection.IndexOf(RowStyle) 方法

定义

确定 TableLayoutRowStyleCollection中特定项的索引。

public:
 int IndexOf(System::Windows::Forms::RowStyle ^ rowStyle);
public int IndexOf(System.Windows.Forms.RowStyle rowStyle);
member this.IndexOf : System.Windows.Forms.RowStyle -> int
Public Function IndexOf (rowStyle As RowStyle) As Integer

参数

rowStyle
RowStyle

RowStyle . 中查找的TableLayoutRowStyleCollection

返回

如果在 /> 中找到的索引;否则为 -1。

注解

该方法 IndexOf 开始搜索第一个元素 TableLayoutRowStyleCollection ,并在找到匹配项或到达最后一个元素时结束。

适用于

另请参阅