Condividi tramite


_CommandBarButton.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

'Dichiarazione
ReadOnly Property Index As Integer
    Get
'Utilizzo
Dim instance As _CommandBarButton
Dim value As Integer

value = instance.Index
int Index { get; }
property int Index {
    int get ();
}
abstract 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

CommandBarControl.Index

Remarks

This index is 1-based.

.NET Framework Security

See Also

Reference

_CommandBarButton Interface

_CommandBarButton Members

Index Overload

Microsoft.VisualStudio.CommandBars Namespace