Share via


RadioButtonArray.GetIndex(RadioButton) 方法

定义

获取 RadioButton 中的 RadioButtonArray 的索引。

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

参数

o
RadioButton

控件数组中的 RadioButton

返回

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

注解

此方法可用于检索 的 RadioButton索引。

注意

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

适用于