Point Class

Point.When the object is serialized out as xml, its qualified name is dgm:pt.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(TextBody))> _
<ChildElementInfoAttribute(GetType(PtExtensionList))> _
<ChildElementInfoAttribute(GetType(ShapeProperties))> _
<ChildElementInfoAttribute(GetType(PropertySet))> _
Public Class Point _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Point
[ChildElementInfoAttribute(typeof(TextBody))]
[ChildElementInfoAttribute(typeof(PtExtensionList))]
[ChildElementInfoAttribute(typeof(ShapeProperties))]
[ChildElementInfoAttribute(typeof(PropertySet))]
public class Point : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • PropertySet <dgm:prSet>

  • ShapeProperties <dgm:spPr>

  • TextBody <dgm:t>

  • PtExtensionList <dgm:extLst>

[ISO/IEC 29500-1 1st Edition]

21.4.3.5 pt (Point)

This element defines a point in DiagramML. A point in DiagramML is defined to hold data associated with a particular point or node in a diagram. Transitions between nodes in a diagram along with the nodes themselves are defined as different types of points. A point is not only responsible for holding the data associated with a node in a diagram, but also for holding customization properties made to the text and shape associated with the particular node.

[Example: Consider the following example of a pt in DiagramML:

<pt modelId="{C6A8900D-3F1B-4F1D-A514-4E8BDD964568}">
<prSet phldrT="[Text]"/>
<spPr/>
<t>
<bodyPr/>
<lstStyle/>
<p>
<r>
<rPr lang="en-US" smtClean="0"/>
<t>Text 2</t>
</r>
<endParaRPr lang="en-US" dirty="0"/>
</p>
</t>
</pt>

In this example we define a point which holds the data associated with a node in a diagram. The actual text in the diagram is defined in the text body, t, tag and consists of the string "Text 2". There are no overrides made to the shape properties and placeholder text defined for this node when there is no text body present. end example]

Parent Elements

ptLst (§21.4.3.6)

Child Elements

Subclause

extLst (Extension List)

§21.4.2.13

prSet (Property Set)

§21.4.3.4

spPr (Shape Properties)

§21.4.3.7

t (Text Body)

§21.4.3.8

Attributes

Description

cxnId (Connection Identifier)

The model identifier of the connection that represents the transition node.

[Example: Consider the following example of a cxnId:

<dgm:pt modelId="5" type="parTrans" cxnId="9">
<dgm:prSet/>
<dgm:spPr/>
</dgm:pt>

In this example we define the connection related to this point to reference connection 9. end example]

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

modelId (Model Identifier)

The unique identifier of the element within the data model. This identifier should be unique only relative to the containing data model.

[Example: Consider the following example of a cxnId:

<dgm:pt modelId="5" type="parTrans" cxnId="9">
<dgm:prSet/>
<dgm:spPr/>
</dgm:pt>

In this example we define the point type is to be 5. end example]

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

type (Point Type)

The type of point.

[Example: Consider the following example of a cxnId:

<dgm:pt modelId="5" type="parTrans" cxnId="9">
<dgm:prSet/>
<dgm:spPr/>
</dgm:pt>

In this example the point type is defined as a parTrans point type. end example]

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

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

Point Members

DocumentFormat.OpenXml.Drawing.Diagrams Namespace