Freigeben über


DiagramChooseElse-Klasse

Else.When the object is serialized out as xml, its qualified name is dgm:else.

Vererbungshierarchie

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

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

Syntax

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

Hinweise

The following table lists the possible child types:

  • Algorithm <dgm:alg>

  • Shape <dgm:shape>

  • PresentationOf <dgm:presOf>

  • Constraints <dgm:constrLst>

  • RuleList <dgm:ruleLst>

  • ForEach <dgm:forEach>

  • LayoutNode <dgm:layoutNode>

  • Choose <dgm:choose>

  • ExtensionList <dgm:extLst>

[ISO/IEC 29500-1 1. Ausgabe]

21.4.2.12 else (Else)

This element is similar to an else statement in a programming language in that it wraps elements which are to be used when the if conditionals are not true.

[Example: Consider the following example of an else element in a DrawingML diagram within the context of a choose statement:

<choose name="Name1">
<if name="Name2" func="var" arg="dir" op="equ" val="norm">
<alg type="snake">
<param type="grDir" val="tL"/>
<param type="flowDir" val="row"/>
<param type="contDir" val="sameDir"/>
<param type="off" val="ctr"/>
</alg>
</if>
<else name="Name3">
<alg type="snake">
<param type="grDir" val="tR"/>
<param type="flowDir" val="row"/>
<param type="contDir" val="sameDir"/>
<param type="off" val="ctr"/>
</alg>
</else>
</choose>

In this example, a else element is used to define a set of parameters associated with the snake algorithm when the diagram is reversed*. end example*]

Parent Elements

choose (§21.4.2.6)

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

Attributes

Description

name (Name)

A unique name associated with the choose statement.

[Example: Consider the following example of a else element in a DrawingML diagram:

<else name="Name1">
…
</else>

In this example, the else element is named Name1. end example].

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_Otherwise) is located in §A.5.3. end note]

© ISO/IEC29500: 2008. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

DiagramChooseElse-Member

DocumentFormat.OpenXml.Drawing.Diagrams-Namespace