Upravit

Sdílet prostřednictvím


CommandBarPopup.OLEMenuGroup Property

Definition

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.

public:
 property Microsoft::Office::Core::MsoOLEMenuGroup OLEMenuGroup { Microsoft::Office::Core::MsoOLEMenuGroup get(); void set(Microsoft::Office::Core::MsoOLEMenuGroup value); };
public Microsoft.Office.Core.MsoOLEMenuGroup OLEMenuGroup { get; set; }
member this.OLEMenuGroup : Microsoft.Office.Core.MsoOLEMenuGroup with get, set
Public Property OLEMenuGroup As MsoOLEMenuGroup

Property Value

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

Applies to