RibbonControlEventArgs.Control Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the control for which the event was raised.
public:
property Microsoft::Office::Core::IRibbonControl ^ Control { Microsoft::Office::Core::IRibbonControl ^ get(); };
public Microsoft.Office.Core.IRibbonControl Control { get; }
member this.Control : Microsoft.Office.Core.IRibbonControl
Public ReadOnly Property Control As IRibbonControl
Property Value
The control for which the event was raised.
Remarks
The Control property gives a reference to the window context where an event is raised. It also provides the ID of the custom control that raised the event.
The Tag
property of the Control is used internally. It contains the Ribbon ID, not the value of the Tag
property of the control.