CustomXmlProperties class

Office 2013 and later

Custom XML Element Properties. When the object is serialized out as xml, its qualified name is w:customXmlPr.


Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class CustomXmlProperties : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

customXmlPr (Custom XML Element Properties)

This element specifies the set of properties which shall be applied to the parent custom XML element.

[Example: Consider a custom XML element with the following properties specified:

  <w:placeholder w:val="[Fill in your name]"/>
  <w:attr w:name="status" w:val="draft"/>

This custom XML element specifies two properties: the presence of placeholder text via the placeholder element (§ and a single custom XML attribute via the attr element (§ end example]

Parent Elements

customXml (§; customXml (§; customXml (§; customXml (§

Child Elements


attr (Custom XML Attribute)


placeholder (Custom XML Element Placeholder Text)


[Note: The W3C XML Schema definition of this element’s content model (CT_CustomXmlPr) is located in §A.1. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.