Condividi tramite


CommandBarsClass.ActionControl Property

Gets the CommandBarControl whose OnAction event initiated the procedure that is currently running.

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

Syntax

'Dichiarazione
Public Overridable ReadOnly Property ActionControl As CommandBarControl
    Get
'Utilizzo
Dim instance As CommandBarsClass
Dim value As CommandBarControl

value = instance.ActionControl
public virtual CommandBarControl ActionControl { get; }
public:
virtual property CommandBarControl^ ActionControl {
    CommandBarControl^ get ();
}
abstract ActionControl : CommandBarControl
override ActionControl : CommandBarControl
function get ActionControl () : CommandBarControl

Property Value

Type: Microsoft.VisualStudio.CommandBars.CommandBarControl
The CommandBarControl.

Implements

_CommandBars.ActionControl

Remarks

If the macro wasn't initiated by a command bar control, this property returns nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

CommandBarsClass Class

CommandBarsClass Members

Microsoft.VisualStudio.CommandBars Namespace