Represents the entire custom ribbon.
This is the root tag of all Ribbon customisations.
The Load event can be accessed if you use the Visual Studio Ribbon Designer.
public void Ribbon_Load(object sender,
this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.Ribbon_Load);
|xmlns - string||must be set to: http://schemas.microsoft.com/office/2006/01/customui|
|Context||only used by Outlook. This has a Context property which can be cast to an Inspector object in Outlook. This allows you to get the inspector associated with the ribbon. Context is null for other applications.|
|Global||The Global property can be set to false to force every Inspector window created is associated with a unique ribbon instance|
|Tabs||returns all the tabs associated with the ribbon|
|commands||This can be used to repurpose built-in controls|
|onLoad||passes a ribbon parameter to the callback procedure as the Ribbon loads. This enables the associated code to store a reference to the Ribbon for later use and allows you to dynamically update the Ribbon.|
|loadImage||enables you to create a single procedure that loads all the images required for the Ribbon.|
public void Ribbon_OnLoad(Office.IRibbonUI ribbonUI)
this.ribbon = ribbonUI
© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext