Share via


BinaryLinkShape Class

Represents a line or arrow that can connect two shapes on a diagram. A binary link can also form a loop that connects a shape to itself.

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

Syntax

'Declaration
<CLSCompliantAttribute(True)> _
Public MustInherit Class BinaryLinkShape _
    Inherits BinaryLinkShapeBase
'Usage
Dim instance As BinaryLinkShape
[CLSCompliantAttribute(true)]
public abstract class BinaryLinkShape : BinaryLinkShapeBase
[CLSCompliantAttribute(true)]
public ref class BinaryLinkShape abstract : public BinaryLinkShapeBase
public abstract class BinaryLinkShape extends BinaryLinkShapeBase

Remarks

BinaryLinkShape is the class from which all connector shapes derive. When you define a connector class in the DSL Definition, its default base class is BinaryLinkShape, unless you explicitly specify another connector class as the base.

A BinaryLinkShape is usually the graphical representation of an instance of a domain relationship. The domain relationship represents conceptual information, and the link shape or connector represents its visible appearance on the diagram. In the DSL Definition, you define a Diagram Element Map between the connector class and the domain relationship. At run time, you can access the domain relationship instance by using the property ModelElement. To navigate from one element to another, it is usually better to navigate first to the model element and then traverse the domain relationships, instead of traversing connectors on the diagram.

For more information, see How to: Access a Presentation Element from a Model Element.

Warning

Most of the methods of this type are defined in BinaryLinkShapeBase.

Examples

For examples, see How to: Access a Presentation Element from a Model Element.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.ModelElement
    Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement
      Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
        Microsoft.VisualStudio.Modeling.Diagrams.LinkShape
          Microsoft.VisualStudio.Modeling.Diagrams.BinaryLinkShapeBase
            Microsoft.VisualStudio.Modeling.Diagrams.BinaryLinkShape
              Microsoft.VisualStudio.Modeling.Diagrams.GenericLinkShape

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

BinaryLinkShape Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace

NodeShape

BinaryLinkShapeBase

Other Resources

How to: Access a Presentation Element from a Model Element

Defining Domain Models

Change History

Date

History

Reason

Added description and ref to examples.

Customer feedback.