다음을 통해 공유


InsertTable Element

Applies to: SharePoint Foundation 2010

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"
/>

Attributes

Attribute

Description

Alt

Optional. Alternative text for the control.

Command

Optional. The name of the command to execute when the control is clicked. 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 clicked.

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

CommandUIDefinition

Controls (MenuSection)

Occurrences

Minimum: 0

Maximum: 1