CustomXmlProperties Class

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

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(CustomXmlPlaceholder))> _
<ChildElementInfoAttribute(GetType(CustomXmlAttribute))> _
Public Class CustomXmlProperties _
    Inherits OpenXmlCompositeElement
Dim instance As CustomXmlProperties
public class CustomXmlProperties : OpenXmlCompositeElement


The following table lists the possible child types:

  • CustomXmlPlaceholder <w:placeholder>

  • CustomXmlAttribute <w:attr>

[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.

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


CustomXmlProperties Members

DocumentFormat.OpenXml.Wordprocessing Namespace