ObjectDefaults Class

Office 2010

Object Defaults.When the object is serialized out as xml, its qualified name is a:objectDefaults.

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

public class ObjectDefaults : OpenXmlCompositeElement

The following table lists the possible child types:

  • ShapeDefault <a:spDef>

  • LineDefault <a:lnDef>

  • TextDefault <a:txDef>

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 1st Edition] objectDefaults (Object Defaults)

This element allows for the definition of default shape, line, and textbox formatting properties. An application can use this information to format a shape (or text) initially on insertion into a document.

Parent Elements

theme (§

Child Elements


extLst (Extension List)


lnDef (Line Default)


spDef (Shape Default)


txDef (Text Default)


[Note: The W3C XML Schema definition of this element’s content model (CT_ObjectStyleDefaults) is located in §A.4.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.

Community Additions

© 2014 Microsoft