QuickAccessToolbar Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(DocumentControlsQatItems), FileFormatVersions.Office2010)> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(SharedControlsQatItems), FileFormatVersions.Office2010)> _
Public Class QuickAccessToolbar _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As QuickAccessToolbar
[ChildElementInfoAttribute(typeof(DocumentControlsQatItems), FileFormatVersions.Office2010)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(SharedControlsQatItems), FileFormatVersions.Office2010)]
public class QuickAccessToolbar : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • SharedControlsQatItems <mso14:sharedControls>

  • DocumentControlsQatItems <mso14:documentControls>

2.3.40 CT_Qat

Target namespace: https://schemas.microsoft.com/office/2007/10/customui

Referenced by: CT_Ribbon

Specifies the Quick Access Toolbar. This element MUST NOT be specified unless the startFromScratch attribute on the containing ribbon element is set to true.

Child Elements:

sharedControls : A CT_QatItems element that specifies the list of controls which are shared among all documents.

documentControls : A CT_QatItems element that specifies the list of controls which are specific to the current document.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_Qat">

<xsd:sequence>

<xsd:element name="sharedControls" type="CT_QatItems" minOccurs="0"/>

<xsd:element name="documentControls" type="CT_QatItems" minOccurs="0"/>

</xsd:sequence>

</xsd:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

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

QuickAccessToolbar Members

DocumentFormat.OpenXml.Office2010.CustomUI Namespace