CommandBarButtonClass.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
public virtual int Index { get; }
Property Value
Type: System.Int32
The index of this control in the set of controls on the command bar.
Implements
Remarks
This index is 1-based.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.