CustomXmlProperties Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Wordprocessing.CustomXmlProperties

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(CustomXmlPlaceholder))> _
<ChildElementInfoAttribute(GetType(CustomXmlAttribute))> _
Public Class CustomXmlProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As CustomXmlProperties
[ChildElementInfoAttribute(typeof(CustomXmlPlaceholder))]
[ChildElementInfoAttribute(typeof(CustomXmlAttribute))]
public class CustomXmlProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • CustomXmlPlaceholder <w:placeholder>

  • CustomXmlAttribute <w:attr>

[ISO/IEC 29500-1 1st Edition]

17.5.1.7 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:customXmlPr>
<w:placeholder w:val="[Fill in your name]"/>
<w:attr w:name="status" w:val="draft"/>
</w:customXmlPr>

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

Parent Elements

customXml (§17.5.1.6); customXml (§17.5.1.4); customXml (§17.5.1.5); customXml (§17.5.1.3)

Child Elements

Subclause

attr (Custom XML Attribute)

§17.5.1.1

placeholder (Custom XML Element Placeholder Text)

§17.5.1.8

[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

Reference

CustomXmlProperties Members

DocumentFormat.OpenXml.Wordprocessing Namespace