Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the control for which the event was raised.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public ReadOnly Property Control As IRibbonControl
'Usage
Dim instance As RibbonControlEventArgs
Dim value As IRibbonControl
value = instance.Control
public IRibbonControl Control { get; }
public:
property IRibbonControl^ Control {
IRibbonControl^ get ();
}
public function get Control () : IRibbonControl
Property Value
Type: IRibbonControl
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.
.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.