RibbonPositionStatics.BeforeOfficeId Method

Returns a new RibbonPosition object that represents the location of a control, group, or tab before a built-in control, group, or tab.

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

Syntax

'Declaration
Function BeforeOfficeId ( _
    officeId As String _
) As RibbonPosition
RibbonPosition BeforeOfficeId(
    string officeId
)

Parameters

  • officeId
    Type: System.String

    The ID of the built-in control, group, or tab that the RibbonPosition uses to define a relative location for another control, group, or tab.

Return Value

Type: Microsoft.Office.Tools.Ribbon.RibbonPosition
A RibbonPosition object that represents the location of a control, group, or tab before the specified built-in control, group, or tab.

Remarks

Use this method or the AfterOfficeId method to create an RibbonPosition object.

The ID is a name that uniquely identifies a control, group, or tab that is built into a Microsoft Office application. For a list of IDs, see the Microsoft Download Center Web page Office 2010 Help Files: Office Fluent User Interface Control Identifiers.

.NET Framework Security

See Also

Reference

RibbonPositionStatics Interface

Microsoft.Office.Tools.Ribbon Namespace