LayoutNode class

Office 2013 and later

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

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

No code example is currently available or this language may not be supported.

[ISO/IEC 29500-1 1st Edition]

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="http://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.

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: