HeaderShapeDefaults class

Office 2013 and later

Default Properties for VML Objects in Header and Footer. When the object is serialized out as xml, its qualified name is w:hdrShapeDefaults.

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

public class HeaderShapeDefaults : ShapeDefaultsType

[ISO/IEC 29500-1 1st Edition]

hdrShapeDefaults (Default Properties for VML Objects in Header and Footer)

This element specifies the default parameters for object using the VML syntax (§14.1) inserted in the header and footer of a WordprocessingML document. The definition and semantics of these parameters is described in the VML - Office Drawing subclause (§14.2) of /IEC 29500.

If this element is omitted, then no default properties are applied to VML objects in the header and footer of this document.

[Example: Consider a WordprocessingML document whose document settings contain the following markup:

  <o:shapedefaults v:ext="edit" spidmax="2050" fillcolor="none [3207]" strokecolor="none [3041]">
    <v:fill color="none [3207]" />
    <v:stroke color="none [3041]" weight="3pt" />
    <v:shadow on="t" type="perspective" color="none [1607]" opacity=".5" offset="1pt" offset2="1pt" />
  <o:shapelayout v:ext="edit">
    <o:idmap v:ext="edit" data="2" />

The hdrShapeDefaults element specifies a set of shape defaults which must be applied to the set of all shapes present in the header and footer of this document. end example]

Parent Elements

settings (Part 1, §

Child Elements


Any element in the urn:schemas-microsoft-com:office:office namespace


[Note: The W3C XML Schema definition of this element’s content model (CT_ShapeDefaults) 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.