Share via


RibbonSeparator Class (2007 System)

Represents a separator control for a group or menu on the Ribbon. This class cannot be inherited.

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

Syntax

'Declaration
<ToolboxBitmapAttribute(GetType(RibbonSeparator), "RibbonSeparator.bmp")> _
Public NotInheritable Class RibbonSeparator _
    Inherits RibbonControl
'Usage
Dim instance As RibbonSeparator
[ToolboxBitmapAttribute(typeof(RibbonSeparator), "RibbonSeparator.bmp")]
public sealed class RibbonSeparator : RibbonControl
[ToolboxBitmapAttribute(typeof(RibbonSeparator), L"RibbonSeparator.bmp")]
public ref class RibbonSeparator sealed : public RibbonControl
public final class RibbonSeparator extends RibbonControl

Remarks

A RibbonSeparator control draws a line, horizontal or vertical.

For the Microsoft Office Menu, a RibbonMenu, and a RibbonSplitButton, the RibbonSeparator is horizontal.

For the Ribbon, the RibbonSeparator is vertical.

You can set the Title property to have text on the separator in menus.

If the RibbonSeparator is located at the end of a menu, the RibbonSeparator is visible in the Ribbon Designer, but not in the Microsoft Office application.

RibbonSeparator implements separator and menuSeparator RibbonX elements.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.Office.Tools.Ribbon.RibbonComponent
        Microsoft.Office.Tools.Ribbon.RibbonControl
          Microsoft.Office.Tools.Ribbon.RibbonSeparator

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

RibbonSeparator Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Overview

Ribbon Designer

Ribbon Object Model Overview

How to: Get Started Customizing the Ribbon