StatusBarArray.GetIndex(StatusBar) 方法

定义

获取 StatusBar 中的 StatusBarArray 的索引。Gets the index of a StatusBar in a StatusBarArray.

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

参数

o
StatusBar

控件数组中的 StatusBarA StatusBar in the control array.

返回

Int16

Short,表示指定的 StatusBar 的索引。A Short that represents the index of the specified StatusBar.

注解

此方法可用于检索指定的的索引 StatusBarThis method can be used to retrieve the index for the specified StatusBar.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于