Partager via


LayoutNode Class

Layout Node.When the object is serialized out as xml, its qualified name is dgm:layoutNode.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Diagrams.LayoutNode

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(VariableList))> _
<ChildElementInfoAttribute(GetType(RuleList))> _
<ChildElementInfoAttribute(GetType(LayoutNode))> _
<ChildElementInfoAttribute(GetType(Choose))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(Algorithm))> _
<ChildElementInfoAttribute(GetType(ForEach))> _
<ChildElementInfoAttribute(GetType(Shape))> _
<ChildElementInfoAttribute(GetType(PresentationOf))> _
<ChildElementInfoAttribute(GetType(Constraints))> _
Public Class LayoutNode _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As LayoutNode
[ChildElementInfoAttribute(typeof(VariableList))]
[ChildElementInfoAttribute(typeof(RuleList))]
[ChildElementInfoAttribute(typeof(LayoutNode))]
[ChildElementInfoAttribute(typeof(Choose))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(Algorithm))]
[ChildElementInfoAttribute(typeof(ForEach))]
[ChildElementInfoAttribute(typeof(Shape))]
[ChildElementInfoAttribute(typeof(PresentationOf))]
[ChildElementInfoAttribute(typeof(Constraints))]
public class LayoutNode : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • Algorithm <dgm:alg>

  • Shape <dgm:shape>

  • PresentationOf <dgm:presOf>

  • Constraints <dgm:constrLst>

  • RuleList <dgm:ruleLst>

  • VariableList <dgm:varLst>

  • ForEach <dgm:forEach>

  • LayoutNode <dgm:layoutNode>

  • Choose <dgm:choose>

  • ExtensionList <dgm:extLst>

[ISO/IEC 29500-1 1st Edition]

21.4.2.19 layoutNode (Layout Node)

The layout node is the basic building block of diagrams.  The layout node is responsible for defining how shapes are arranged in a diagram and how the data maps to a particular shape in a diagram.

[Example: Consider the following example of a basic layout node defined in a DrawingML diagram:

<layoutNode name="node">
<varLst>
<bulletEnabled val="1"/>
</varLst>
<presOf axis="desOrSelf" ptType="node"/>
<alg type="tx"/>
<shape type="rect" xmlns:r="https://schemas.openxmlformats.org/officeDocument/2006/relationships" r:blip="">
<adjLst/>
</shape>
<constrLst/>
<ruleLst>
<rule type="primFontSz" forName="" val="2" fact="NaN" max="NaN"/>
</ruleLst>
</layoutNode>

In this example we define a layout node which holds text and is a rectangle. end example]

Parent Elements

else (§21.4.2.12); forEach (§21.4.2.14); if (§21.4.2.15); layoutDef (§21.4.2.16); layoutNode (§21.4.2.19)

Child Elements

Subclause

alg (Algorithm)

§21.4.2.3

choose (Choose Element)

§21.4.2.6

constrLst (Constraint List)

§21.4.2.9

extLst (Extension List)

§21.4.2.13

forEach (For Each)

§21.4.2.14

layoutNode (Layout Node)

§21.4.2.19

presOf (Presentation Of)

§21.4.2.21

ruleLst (Rule List)

§21.4.2.25

shape (Shape)

§21.4.2.27

varLst (Variable List)

§21.4.2.31

Attributes

Description

chOrder (Child Order)

Specifes the ordering of the child layout nodes for a given layout node.

The possible values for this attribute are defined by the ST_ChildOrderType simple type (§21.4.7.15).

moveWith (Move With)

Reference to another layout node that this layout node moves with.

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

name (Name)

A unique identifier for the layout node.

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

styleLbl (Style Label)

Specify which formatting option from a style or color variation should be applied to this layout node.

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_LayoutNode) 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

LayoutNode Members

DocumentFormat.OpenXml.Drawing.Diagrams Namespace