CommandBarControls.Item 属性
获取命令栏控件在给定名称或索引。
命名空间: Microsoft.VisualStudio.CommandBars
程序集: Microsoft.VisualStudio.CommandBars(在 Microsoft.VisualStudio.CommandBars.dll 中)
语法
声明
ReadOnly Default Property Item ( _
Index As Object _
) As CommandBarControl
CommandBarControl this[
Object Index
] { get; }
参数
- Index
类型:System.Object
控件的名称或索引。
属性值
类型:Microsoft.VisualStudio.CommandBars.CommandBarControl
CommandBarControl 。
备注
此集合从 1 开始。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。