RibbonPosition.AfterOfficeId Method
Returns a new RibbonPosition that represents the location of a control, group, or tab after the specified built-in control, group, or tab.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Shared Function AfterOfficeId ( _
officeId As String _
) As RibbonPosition
'Usage
Dim officeId As String
Dim returnValue As RibbonPosition
returnValue = RibbonPosition.AfterOfficeId(officeId)
public static RibbonPosition AfterOfficeId(
string officeId
)
Parameters
- officeId
Type: System.String
The ID of the built-in control, group, or tab that the new RibbonPosition uses to define a relative location for another control, group, or tab.
Return Value
Type: Microsoft.Office.Tools.Ribbon.RibbonPosition
A new RibbonPosition that represents the location of a control, group, or tab after the specified built-in control, group, or tab.
Remarks
Use this method or the BeforeOfficeId method to create an instance of the RibbonPosition class. The RibbonPosition class does not have a public constructor.
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 2007 Office System Document: Lists of Control IDs.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.