RibbonUIEventArgs.RibbonUI Property
Gets an instance of the Microsoft.Office.Core.IRibbonUI interface when the Ribbon is loaded into the Microsoft Office application.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
ReadOnly Property RibbonUI As IRibbonUI
IRibbonUI RibbonUI { get; }
Property Value
Type: IRibbonUI
An Microsoft.Office.Core.IRibbonUI interface.
Remarks
You can use the Microsoft.Office.Core.IRibbonUI to refresh the user interface of the Ribbon or its individual controls. However, because PerformLayout is called automatically when a control is changed, there is little need to use Microsoft.Office.Core.IRibbonUI directly.
For more information about Microsoft.Office.Core.IRibbonUI, see IRibbonUI Object.
.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.