共用方式為


CommandBarComboBoxClass.Index Property

Gets the index of this control in the set of controls on the command bar.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

'宣告
Public Overridable ReadOnly Property Index As Integer
    Get
'用途
Dim instance As CommandBarComboBoxClass
Dim value As Integer

value = instance.Index
public virtual int Index { get; }
public:
virtual property int Index {
    int get ();
}
abstract Index : int
override Index : int
function get Index () : int

Property Value

Type: System.Int32
The index of this control in the set of controls on the command bar.

Implements

_CommandBarComboBox.Index

Remarks

This index is 1-based.

.NET Framework Security

See Also

Reference

CommandBarComboBoxClass Class

CommandBarComboBoxClass Members

Microsoft.VisualStudio.CommandBars Namespace