PanelArray.GetIndex(Panel) 方法

定义

获取 Panel 中的 PanelArray 的索引。

public:
 short GetIndex(System::Windows::Forms::Panel ^ o);
public short GetIndex (System.Windows.Forms.Panel o);
member this.GetIndex : System.Windows.Forms.Panel -> int16
Public Function GetIndex (o As Panel) As Short

参数

o
Panel

控件数组中的 Panel

返回

Short,表示指定的 Panel 的索引。

注解

此方法可用于检索指定 Panel的索引。

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。

适用于