Поделиться через


ConnectionShape Class

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

Inheritance Hierarchy

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

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

Syntax

'Декларация
<ChildElementInfoAttribute(GetType(NonVisualConnectionShapeProperties))> _
<ChildElementInfoAttribute(GetType(ShapeProperties))> _
<ChildElementInfoAttribute(GetType(ShapeStyle))> _
Public Class ConnectionShape _
    Inherits OpenXmlCompositeElement
'Применение
Dim instance As ConnectionShape
[ChildElementInfoAttribute(typeof(NonVisualConnectionShapeProperties))]
[ChildElementInfoAttribute(typeof(ShapeProperties))]
[ChildElementInfoAttribute(typeof(ShapeStyle))]
public class ConnectionShape : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • NonVisualConnectionShapeProperties <xdr:nvCxnSpPr>

  • ShapeProperties <xdr:spPr>

  • ShapeStyle <xdr:style>

[ISO/IEC 29500-1 редакция 1]

20.5.2.13 cxnSp (Connection Shape)

This element specifies the properties for a connection shape drawing element. A connection shape is a line, etc. that connects two other shapes in this drawing.

Parent Elements

absoluteAnchor (§20.5.2.1); grpSp (§20.5.2.17); oneCellAnchor (§20.5.2.24); twoCellAnchor (§20.5.2.33)

Child Elements

Subclause

nvCxnSpPr (Non-Visual Properties for a Connection Shape)

§20.5.2.19

spPr (Shape Properties)

§20.5.2.30

style (Shape Style)

§20.5.2.31

Attributes

Description

fPublished (Publish to Server Flag)

This attribute indicates whether the shape shall be published with the worksheet when sent to the server.

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

macro (Reference to Custom Function)

This element specifies the custom function associated with the object. [Example: A macro script, add-in function, and so on. end example]

The format of this string shall be application-defined, and should be ignored if not understood.

[Example:

< … macro="DoWork()" />

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

© ISO/IEC29500: 2008. Приведенный выше текст переведен с английского языка на русский корпорацией Майкрософт (или ее подрядчиками) и ISO не несет ответственности за эти переводы.

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

ConnectionShape Members

DocumentFormat.OpenXml.Drawing.Spreadsheet Namespace