InsertTable element (Server Ribbon)

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

Defines a menu control for inserting a table that contains a variable number of cells.

<InsertTable
  Alt="Text"
  Command="Text"
  CommandType="General | OptionSelection | IgnoredByMenu"
  CommandPreview="Text"
  CommandRevert="Text"
  Id="Text"
  MenuSectionInitialTitle="Text"
  MenuSectionTitle="Text"
  Sequence="Integer"
/>

Elements and attributes

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

Attributes

Attribute Description
Alt
Optional. Alternative text for the control.
Command
Optional. The name of the command to execute when the control is selected. If the control is in a CommandUIDefinition element, the value of the Command attribute of the control should be the same as the value of the Command attribute of a corresponding CommandUIHandler element.
CommandType
Optional. An enumeration value that specifies the type of command.
General. Not a specific type of command.
OptionSelection. A command that is generated when a user selects one option in an option group.
IgnoredByMenu. A command that is used for controls that should not close the menu when they are selected.
CommandPreview
Optional. The name of the command to execute to preview a selection.
CommandRevert
Optional. The name of the command to execute to return to the state that existed before previewing a selection.
Id
Required. A string that identifies the control.
MenuSectionInitialTitle
Optional. The title of the menu section before table cells are selected, such as "Insert Table".
MenuSectionTitle
Optional. The title of the menu section when table cells are selected. This could be a format string such as "Insert a {0} by {1} Table".
Sequence
Optional. An integer that specifies the order of placement among sibling XML nodes.

Child elements

None

Parent elements

Occurrences

  • Minimum: 0
  • Maximum: 1