編輯

共用方式為


CommandBarControl.OLEUsage Property

Definition

Returns or sets the OLE client and OLE server roles in which a command bar control will be used when two Microsoft Office applications are merged.

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

Property Value

Remarks

This property is intended to allow you to specify how individual add-in applications' command bar controls will be represented in one Office application when it is merged with another Office application. If both the client and server implement command bars, the command bar controls are embedded in the client control by control. Custom controls marked as client-only (or neither client nor server) are dropped from the server, and controls marked as server-only (or neither server nor client) are dropped from the client. The remaining controls are merged.

If one of the merging applications isn't an Office application, normal OLE menu merging is used, which is controlled by the OLEMenuGroup property.

Applies to