RadioButton.Index 属性

获取 RadioButton 在工作表上的 OLEObjects 集合内的索引号。

命名空间:  Microsoft.Office.Tools.Excel.Controls
程序集:  Microsoft.Office.Tools.Excel.v4.0.Utilities(在 Microsoft.Office.Tools.Excel.v4.0.Utilities.dll 中)

语法

声明
Public ReadOnly Property Index As Integer
    Get
public int Index { get; }

属性值

类型:System.Int32
RadioButton 在工作表上的 OLEObjects 集合内的索引号。

备注

添加到 Microsoft Office Excel 工作表上的控件的索引值从 2 开始,因为它是工作表的 OLEObjects 集合的索引。

示例

有关演示如何使用此属性的代码示例,请参见 Button.IndexMicrosoft.Office.Tools.Excel.Controls 命名空间中的所有控件都具有在功能上等效的 Index 属性。

.NET Framework 安全性

请参见

参考

RadioButton 类

Microsoft.Office.Tools.Excel.Controls 命名空间