Freigeben über


CommandBarPopup.OLEMenuGroup Property

Returns or sets the menu group that the specified command bar pop-up control belongs to when the menu groups of the OLE server are merged with the menu groups of an OLE client - that is, when an object of the container application type is embedded in another application.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property OLEMenuGroup As MsoOLEMenuGroup
    Get
    Set
'Usage
Dim instance As CommandBarPopup
Dim value As MsoOLEMenuGroup

value = instance.OLEMenuGroup

instance.OLEMenuGroup = value
MsoOLEMenuGroup OLEMenuGroup { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoOLEMenuGroup

Remarks

This property is read-only for built-in controls.

This property is intended to allow add-in applications to specify how their command bar controls will be represented in the Office application. If either the container or the server does not implement command bars, normal OLE menu merging will occur: the menu bar will be merged, as well as all the toolbars from the server, and none of the toolbars from the container. This property is relevant only for pop-up controls on the menu bar because menus are merged on the basis of their menu group category.

If both of the merging applications implement command bars, command bar controls are merged according to the OLEUsage property.

Notes to Callers

See Also

Reference

CommandBarPopup Interface

CommandBarPopup Members

Microsoft.Office.Core Namespace