ShapeDefaults class

Office 2013 and later

Default Properties for VML Objects in Main Document. When the object is serialized out as xml, its qualified name is w:shapeDefaults.

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

public class ShapeDefaults : ShapeDefaultsType

[ISO/IEC 29500-1 1st Edition]

shapeDefaults (Default Properties for VML Objects in Main Document)

This element specifies the default parameters for object using the VML syntax (§14.1) inserted in the body (the main document story, comments, footnotes, and endnotes) of the 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 body of this document.

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

<w:shapeDefaults>
  <o:shapedefaults v:ext="edit" spidmax="1026" />
  <o:shapelayout v:ext="edit">
    <o:idmap v:ext="edit" data="1" />
  </o:shapelayout>
</w:shapeDefaults>

The shapeDefaults element specifies a set of shape defaults which must be applied to the set of all shapes present in the body document. end example]

Parent Elements

settings (Part 1, §17.15.1.78)

Child Elements

Subclause

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

§14.2

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