Export (0) Print
Expand All CustomUI Part

Content Type


Root Namespace


Source Relationship


An instance of this part type contains information about the Ribbon customizations ([MS-CUSTOMUI]) specific to this package.

[Example: A SpreadsheetML document that represents a timecard could contain custom UI controls to guide the user in filling out the timecard. end example]

A package is permitted to contain at most one CustomUI part, and that part shall be the target of a relationship in the package-relationship item for the document.

[Example: The following package part-relationship item contains a relationship to a CustomUI part, which is stored in the ZIP item /customUI/customUI.xml:

<Relationships xmlns="…">
<Relationship Id="rId5"  
Target="/customUI/customUI.xml" />

end example]

The root element for a part of this content type shall be customUI.

[Example: The following CustomUI content markup would specify that the ribbon tab with ID TabHome should be hidden for the containing package:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<tab idMso="TabHome" visible="false" />

end example]

A CustomUI part shall be located within the package containing the source relationship (expressed syntactically, the TargetMode attribute of the Relationship element shall be Internal).

A CustomUI part is permitted to have explicit relationships to the following parts defined by Office Open XML File Formats [ISO/IEC-29500:2012]:

Image Part ("[ISO/IEC-29500-1] §15.2.14")

© 2014 Microsoft