Share via


RibbonPosition Class (2007 System)

Represents the location of a Ribbon control on the Microsoft Office Menu relative to a built-in control, the location of a tab relative to a built-in tab, or the location of a group relative to a built-in group.

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

Syntax

'Declaration
Public NotInheritable Class RibbonPosition _
    Implements IEquatable(Of RibbonPosition)
'Usage
Dim instance As RibbonPosition
public sealed class RibbonPosition : IEquatable<RibbonPosition>
public ref class RibbonPosition sealed : IEquatable<RibbonPosition^>
public final class RibbonPosition implements IEquatable<RibbonPosition>

Remarks

Use the Position property of a RibbonGroup to specify the location of a group on a built-in tab, relative to a built-in group on the tab. For more information, see How to: Customize a Built-in Tab.

Use the Position property of controls that can be used on the Microsoft Office Menu, such as RibbonButton, to specify the location of the control relative to a built-in control on the menu. The Position property of these controls has no effect when the controls are placed on a Ribbon tab. For more information, see How to: Customize the Microsoft Office Menu.

Use the Position property of a RibbonTab to specify the location of the tab relative to a built-in tab.

To create an instance of the RibbonPosition class, use the static AfterOfficeId or BeforeOfficeId methods. The RibbonPosition class does not have a public constructor.

Inheritance Hierarchy

System.Object
  Microsoft.Office.Tools.Ribbon.RibbonPosition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RibbonPosition Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

How to: Customize the Microsoft Office Menu

How to: Customize a Built-in Tab

Ribbon Object Model Overview