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; }

参数

属性值

类型:Microsoft.VisualStudio.CommandBars.CommandBarControl
CommandBarControl

备注

此集合从 1 开始。

.NET Framework 安全性

请参见

参考

CommandBarControls 接口

Microsoft.VisualStudio.CommandBars 命名空间