The DiagramConnectionSegment type exposes the following members.

Constructors

  NameDescription
DiagramConnectionSegmentOverloaded.

Methods

  NameDescription
Clone
Returns a deep clone of this DiagramConnectionSegment.
GetClosestPointTo
Returns the Point that lies on this DiagramConnectionSegment that is the closest point to the given one. The returned Point will have integer precision values.
RecalculateLayoutProperties
Calculates and sets the appropriate values for the Midpoint, IsHorizontal, and IsVertical properties.
SetEndPointNoNotify
Just sets the end point of this DiagramConnectionSegment without raising any property changed events.
SetStartPointNoNotify
Just sets the start point of this DiagramConnectionSegment to be the given point without raising any property changed events. If the previous segment is null, then the end point of this segment will be set to be the given point instead.
ShallowClone
Returns a shallow copy of just this DiagramConnectionSegment.

Fields

  NameDescription
IsHorizontalProperty
Identifies the IsHorizontal property.
IsVerticalProperty
Identifies the IsVertical property.
MidpointProperty
Identifies the Midpoint property.

Properties

  NameDescription
Connection
Gets the IDiagramConnection that the segment belongs to.
EndPoint
Gets or sets the end point of this DiagramConnectionSegment. Note that this value is also used for the start point of the next segment to this one.
IsHorizontal
Gets whether the segment is horizontal. True if this DiagramConnectionSegment is horizontal. False otherwise. This DiagramConnectionSegment is horizontal if the y values of the start and end points are both the same. This is a dependency property.
IsVertical
Gets the whether the segment is vertical. This is a dependency property.
Length
Returns the length of this DiagramConnectionSegment in double precision/>
Midpoint
Gets the midpoint of this DiagramConnectionSegment. This is a dependency property.
NextSegment
Gets or sets the DiagramConnectionSegment that comes next in a chain of segments. Setting this property also makes sure that the previous segment of the set one is set to be this segment.
PreviousSegment
Gets or sets the DiagramConnectionSegment that comes previously before this one in a chain of segments. Setting this property alse makes sure that the next segment of the set one is set to be this segment.
StartPoint
Gets or sets the end point of the previous DiagramConnectionSegment to this one. If this DiagramConnectionSegment does not have a previous segment, then the start point of this DiagramConnectionSegment is its end point.

See Also