ObjectDefaults Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.ObjectDefaults

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(ShapeDefault))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(LineDefault))> _
<ChildElementInfoAttribute(GetType(TextDefault))> _
Public Class ObjectDefaults _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As ObjectDefaults
[ChildElementInfoAttribute(typeof(ShapeDefault))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(LineDefault))]
[ChildElementInfoAttribute(typeof(TextDefault))]
public class ObjectDefaults : OpenXmlCompositeElement

Remarks

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]

20.1.6.7 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 (§20.1.6.9)

Child Elements

Subclause

extLst (Extension List)

§20.1.2.2.15

lnDef (Line Default)

§20.1.4.1.20

spDef (Shape Default)

§20.1.4.1.27

txDef (Text Default)

§20.1.4.1.28

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

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

ObjectDefaults Members

DocumentFormat.OpenXml.Drawing Namespace