Share via


LayoutDefinition Class

Layout Definition. It is the root element of DiagramLayoutDefinitionPart.When the object is serialized out as xml, its qualified name is dgm:layoutDef.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Drawing.Diagrams.LayoutDefinition

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(LayoutNode))> _
<ChildElementInfoAttribute(GetType(CategoryList))> _
<ChildElementInfoAttribute(GetType(StyleData))> _
<ChildElementInfoAttribute(GetType(ColorData))> _
<ChildElementInfoAttribute(GetType(Title))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(SampleData))> _
<ChildElementInfoAttribute(GetType(Description))> _
Public Class LayoutDefinition _
    Inherits OpenXmlPartRootElement
'Usage
Dim instance As LayoutDefinition
[ChildElementInfoAttribute(typeof(LayoutNode))]
[ChildElementInfoAttribute(typeof(CategoryList))]
[ChildElementInfoAttribute(typeof(StyleData))]
[ChildElementInfoAttribute(typeof(ColorData))]
[ChildElementInfoAttribute(typeof(Title))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(SampleData))]
[ChildElementInfoAttribute(typeof(Description))]
public class LayoutDefinition : OpenXmlPartRootElement

Remarks

The following table lists the possible child types:

  • Title <dgm:title>

  • Description <dgm:desc>

  • CategoryList <dgm:catLst>

  • SampleData <dgm:sampData>

  • StyleData <dgm:styleData>

  • ColorData <dgm:clrData>

  • LayoutNode <dgm:layoutNode>

  • ExtensionList <dgm:extLst>

[ISO/IEC 29500-1 1st Edition]

21.4.2.16 layoutDef (Layout Definition)

This element is the root element for defining a layout definition. The layout definition is defined through a set of nested layout nodes. The layout definition is responsible for defining the look of a diagram.

Parent Elements

Root element of DrawingML Diagram Layout Definition part

Child Elements

Subclause

catLst (Category List)

§21.4.2.5

clrData (Color Transform Sample Data)

§21.4.2.7

desc (Description)

§21.4.2.11

extLst (Extension List)

§21.4.2.13

layoutNode (Layout Node)

§21.4.2.19

sampData (Sample Data)

§21.4.2.26

styleData (Style Data)

§21.4.2.29

title (Title)

§21.4.2.30

Attributes

Description

defStyle (Default Style)

This attribute defines a reference to a default style which is to be applied to the diagram.

The possible values for this attribute are defined by the W3C XML Schema string datatype.

minVer (Minimum Version)

Minimum product version that can support this layout definition.

The possible values for this attribute are defined by the W3C XML Schema string datatype.

uniqueId (Unique Identifier)

The unique identifier for this layout definition.

The possible values for this attribute are defined by the W3C XML Schema string datatype.

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

LayoutDefinition Members

DocumentFormat.OpenXml.Drawing.Diagrams Namespace