Algorithm Class

Algorithm.When the object is serialized out as xml, its qualified name is dgm:alg.

Inheritance Hierarchy

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

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

Syntax

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

Remarks

The following table lists the possible child types:

  • Parameter <dgm:param>

  • ExtensionList <dgm:extLst>

[ISO/IEC 29500-1 1st Edition]

21.4.2.3 alg (Algorithm)

The algorithm used by the containing layout node. The algorithm defines the behavior of the layout node along with the behavior and layout of the nested layout nodes.

[Example: Consider the following example of alg being used in a DrawingML diagram:

<layoutNode name="arrow">                    
<varLst/>
<alg type="tx" />                        
<shape type="upArrow">                   
<adjLst>                             
<adj idx="2" val=".35" />        
</adjLst>                            
</shape>                                 
<presOf axis="desOrSelf" ptType="node" />
<ruleLst/>
</layoutNode>                             

In this example, the tx algorithm is being used to layout text within the containing layout node. end example]

Parent Elements

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

Child Elements

Subclause

extLst (Extension List)

§21.4.2.13

param (Parameter)

§21.4.2.20

Attributes

Description

rev (Revision Number)

The revision number of an algorithm.

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

type (Algorithm Type)

Specifies the algorithm type.

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

[Note: The W3C XML Schema definition of this element’s content model (CT_Algorithm) 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

Algorithm Members

DocumentFormat.OpenXml.Drawing.Diagrams Namespace