次の方法で共有


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

'宣言
ReadOnly Property ActionControl As CommandBarControl
CommandBarControl ActionControl { get; }

Property Value

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

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

_CommandBars Interface

Microsoft.VisualStudio.CommandBars Namespace