Share via


ConnectionShape-Klasse

Connection Shape.When the object is serialized out as xml, its qualified name is a:cxnSp.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.ConnectionShape

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

Syntax

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

Hinweise

The following table lists the possible child types:

  • NonVisualConnectionShapeProperties <a:nvCxnSpPr>

  • ShapeProperties <a:spPr>

  • ShapeStyle <a:style>

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 1. Ausgabe]

20.1.2.2.10 cxnSp (Connection Shape)

This element specifies a connection shape that is used to connect two sp elements. Once a connection is specified using a cxnSp, it is left to the generating application to determine the exact path the connector takes. That is the connector routing algorithm is left up to the generating application as the desired path might be different depending on the specific needs of the application.

DocumentFormat.OpenXml.Drawing.ConnectionShape-ima

[Example: Consider the following connector shape that connects two regular shapes.

<p:spTree>
  …
<p:sp>
<p:nvSpPr>
<p:cNvPr id="1" name="Rectangle 1"/>
<p:cNvSpPr/>
<p:nvPr/>
</p:nvSpPr>
…
</p:sp>
<p:sp>
    <p:nvSpPr>
<p:cNvPr id="2" name="Rectangle 2"/>
<p:cNvSpPr/>
<p:nvPr/>
</p:nvSpPr>
…
</p:sp>
<p:cxnSp>
    <p:nvCxnSpPr>
<p:cNvPr id="3" name="Elbow Connector 3"/>
<p:cNvCxnSpPr>
<a:stCxn id="1" idx="3"/>
<a:endCxn id="2" idx="1"/>
</p:cNvCxnSpPr>
<p:nvPr/>
</p:nvCxnSpPr>
…
</p:cxnSp>
</p:spTree>

end example]

Parent Elements

grpSp (§20.1.2.2.20); lockedCanvas (§20.3.2.1)

Child Elements

Subclause

extLst (Extension List)

§20.1.2.2.15

nvCxnSpPr (Non-Visual Properties for a Connection Shape)

§20.1.2.2.25

spPr (Shape Properties)

§20.1.2.2.35

style (Shape Style)

§20.1.2.2.37

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

ConnectionShape-Member

DocumentFormat.OpenXml.Drawing-Namespace