Share via


LinkShape.Nodes Property

Gets a list of shapes that are connected to the link shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property Nodes As LinkedElementCollection(Of NodeShape)
'Usage
Dim instance As LinkShape 
Dim value As LinkedElementCollection(Of NodeShape)

value = instance.Nodes
public virtual LinkedElementCollection<NodeShape> Nodes { get; }
public:
virtual property LinkedElementCollection<NodeShape^>^ Nodes {
    LinkedElementCollection<NodeShape^>^ get ();
}
public function get Nodes () : LinkedElementCollection<NodeShape>

Property Value

Type: Microsoft.VisualStudio.Modeling.LinkedElementCollection<NodeShape>
A list of shapes that are connected to the link shape.

Remarks

Although it is possible to navigate around a diagram by following the connections between NodeShapes and LinkShapes, we do not recommend that method unless you are adjusting their graphical properties. Usually, you would use ModelElement to get to the model element and then navigate the domain elements and relationships. For more information, see How to: Access a Presentation Element from a Model Element

.NET Framework Security

See Also

Reference

LinkShape Class

LinkShape Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace

Other Resources

How to: Access a Presentation Element from a Model Element