共用方式為


RibbonControlId Interface

Encapsulates an identification string that Microsoft Office uses to refer to controls.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
<GuidAttribute("3e584389-2da9-4cde-bcef-414a8049c476")> _
Public Interface RibbonControlId
[GuidAttribute("3e584389-2da9-4cde-bcef-414a8049c476")]
public interface RibbonControlId

The RibbonControlId type exposes the following members.

Properties

  Name Description
Public property ControlIdType Gets or sets a value that describes whether this ControlIdType identifies a Microsoft Office control or a custom control.
Public property CustomId Gets an identifier for a custom control.
Public property OfficeId Gets or sets an identifier for a Microsoft Office control.

Top

Remarks

RibbonControlId can identify either an Office built-in control (by using the control's idMSO identifier) or a custom control. For a list of built-in Office identifiers, see Office 2010 Help Files: Office Fluent User Interface Control Identifiers.

See Also

Reference

Microsoft.Office.Tools.Ribbon Namespace