次の方法で共有


MenuRoot Class

Defines the MenuRoot Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is mso14:menu.

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2010.CustomUI.MenuRoot

Namespace: DocumentFormat.OpenXml.Office2010.CustomUI
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'宣言
<ChildElementInfoAttribute(GetType(GalleryRegular), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(SplitButtonRegular), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(MenuRegular), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(DynamicMenuRegular), FileFormatVersions.Office2010)> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(ToggleButtonRegular), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(MenuSeparator), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(ControlCloneRegular), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(ButtonRegular), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(CheckBox), FileFormatVersions.Office2010)> _
Public Class MenuRoot _
    Inherits OpenXmlCompositeElement
'使用
Dim instance As MenuRoot
[ChildElementInfoAttribute(typeof(GalleryRegular), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(SplitButtonRegular), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(MenuRegular), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(DynamicMenuRegular), FileFormatVersions.Office2010)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(ToggleButtonRegular), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(MenuSeparator), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(ControlCloneRegular), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(ButtonRegular), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(CheckBox), FileFormatVersions.Office2010)]
public class MenuRoot : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • ControlCloneRegular <mso14:control>

  • ButtonRegular <mso14:button>

  • CheckBox <mso14:checkBox>

  • GalleryRegular <mso14:gallery>

  • ToggleButtonRegular <mso14:toggleButton>

  • MenuSeparator <mso14:menuSeparator>

  • SplitButtonRegular <mso14:splitButton>

  • MenuRegular <mso14:menu>

  • DynamicMenuRegular <mso14:dynamicMenu>

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

MenuRoot Members

DocumentFormat.OpenXml.Office2010.CustomUI Namespace