_CommandBarComboBox.ListIndex 属性

获取或设置选定的项目 (从 1 开始的索引) 在列表中。

命名空间:  Microsoft.VisualStudio.CommandBars
程序集:  Microsoft.VisualStudio.CommandBars(在 Microsoft.VisualStudio.CommandBars.dll 中)

语法

声明
Property ListIndex As Integer
int ListIndex { get; set; }

属性值

类型:System.Int32
选定项的 (从 1 开始的索引) 在列表中。

备注

set 访问器已弃用,并引发 DeprecatedException。

.NET Framework 安全性

请参见

参考

_CommandBarComboBox 接口

Microsoft.VisualStudio.CommandBars 命名空间