Condividi tramite


MenuSection Element

Applies to: SharePoint Foundation 2010

Defines a section of a menu.

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

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

Controls

Gallery

Note

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

Parent Elements

Menu

Occurrences

Minimum: 1

Maximum: unbounded