Represents a bend on an LayoutEdge, which is a shared point between two consecutive straight-line segments of the edge's path.
Remarks
A bend defines a control point in the polyline representation of an edge. Along with the source port and target port, the bends form the entire path of an edge in a graph layout.
This class cannot be instantiated
Type Details
- yFiles module
- algorithms
See Also
Properties
Gets the LayoutGraph this bend belongs to.
Remarks
This property indirectly references the graph via the owning LayoutEdge.
Property Value
The graph that contains this bend, or
null
if the bend has been removed from its edge or if the edge itself has been removed from the graph.Gets the index of this bend in the list of bends on its owning LayoutEdge.
Remarks
The bend index is recalculated by iterating through the list of bends on the edge each time this property is accessed. As a result, this property should not be used in performance-critical code.
Property Value
The index of this bend in the list of bends on the edge. The index corresponds to the bend's position in the sequence of bends, where the sequence follows the order from the source port to the target port of the edge.
Accessing this property repeatedly can cause performance issues, as it involves iteration through the bend list.
Gets the LayoutEdge that owns this bend.
Remarks
If the bend is removed from its edge, this property will return
null
.Property Value
The edge to which this bend belongs, or
null
if this bend has been removed from its edge.Gets or sets the tag object associated with this item instance.
Remarks
The tag is an optional user-defined object which can be used to store arbitrary data related to this item. The item itself just provides the storage for the object.