編輯

共用方式為


MenuSection element (Server Ribbon)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Defines a section of a menu.

<MenuSection
  Id="Text"
  Title="Text"
  Scrollable="TRUE | FALSE"
  Sequence="Integer"
  MaxHeight="Integer"
  DisplayMode="Menu | Menu16 | Menu32"
/>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
Id
Required. A string that identifies the element.
Title
Optional. A string to be displayed as the title of the menu section.
Scrollable
Optional. TRUE to make this section of the menu scrollable.
Sequence
Optional. An integer that specifies the order of placement among sibling XML nodes.
MaxHeight
Optional. Specifies the maximum height of the section in pixels.
DisplayMode
Optional. An enumeration value that determines how controls in this section of the menu are rendered.
Menu. Renders as a text-only menu item.
Menu16. Renders as a menu item with a 16-by-16-pixel icon.
Menu32. Renders as a menu item with a 32-by-32-pixel icon.

Child elements

Note

A MenuSection element must contain either a Controls element or a Gallery element.

Parent elements

Occurrences

  • Minimum: 1
  • Maximum: unbounded