Share via


OfficeRibbon.OfficeMenu Property

Gets a RibbonOfficeMenu that represents the Microsoft Office Menu customization.

Namespace:  Microsoft.Office.Tools.Ribbon
Assemblies:   Microsoft.Office.Tools.Common.v4.0.Utilities (in Microsoft.Office.Tools.Common.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
ReadOnly Property OfficeMenu As RibbonOfficeMenu
RibbonOfficeMenu OfficeMenu { get; }

Property Value

Type: Microsoft.Office.Tools.Ribbon.RibbonOfficeMenu
A RibbonOfficeMenu that represents the Microsoft Office Menu customization.

Remarks

The Microsoft Office Menu is the menu that opens when you click the Microsoft Office Button. You can add controls to the Microsoft Office Menu only by using the Ribbon Designer. For more information, see How to: Add Controls to the Backstage View.

You can access a read-only collection of Ribbon controls in the Microsoft Office Menu customization at run time by using the Items property of the OfficeMenu instance that is exposed by the RibbonOfficeMenu property.

.NET Framework Security

See Also

Reference

OfficeRibbon Interface

Microsoft.Office.Tools.Ribbon Namespace