Interface IConnection
Represents a connection.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public interface IConnection : IDiagramItem, ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible
Properties
BezierTension
Gets or sets the Bezier tension.
Declaration
double BezierTension { get; set; }
Property Value
System.
|
Remarks
A value or zero turns the Bezier connection into a straight line, a value of one and above increase the sharpness of the Bezier curve.
ConnectionPoints
Gets the connection points.
Declaration
IList<Point> ConnectionPoints { get; }
Property Value
System.
|
Remarks
The positions are absolute coordinates with respect to the canvas.
ConnectionType
Gets or sets the type of the connection.
Declaration
ConnectionType ConnectionType { get; set; }
Property Value
EndPoint
Gets or sets the position of where this connection ends.
Declaration
Point EndPoint { get; set; }
Property Value
Geometry
IsModified
Gets or sets a value indicating whether the default Bezier handles have been altered or an intermediate point have been added/removed.
Declaration
bool IsModified { get; set; }
Property Value
System.
|
Remarks
ManipulationPoints
Gets the manipulation points (the adorning elements of the connection which allow you to alter an intermediate connection point).
Declaration
IList<IConnectionEditPoint> ManipulationPoints { get; }
Property Value
System.
|
Route
Gets or sets whether this connection will be automatically routed.
Declaration
bool Route { get; set; }
Property Value
System.
|
Remarks
Source
Gets or sets the source shape of this connection.
Declaration
IShape Source { get; set; }
Property Value
SourceCapSize
Gets or sets the size of the source cap (source decorator or arrow head).
Declaration
SizeF SourceCapSize { get; set; }
Property Value
System.
|
SourceCapType
Gets or sets the type of the source cap.
Declaration
CapType SourceCapType { get; set; }
Property Value
Cap The type of the source cap. |
SourceConnectorPosition
Gets or sets the position of the source connector.
Declaration
string SourceConnectorPosition { get; set; }
Property Value
System.
|
Remarks
By default this is one of the standard position names defined in Connector
SourceConnectorResult
Gets the actual source connector of this connection if the connector is dynamically assigned (Auto).
Declaration
IConnector SourceConnectorResult { get; }
Property Value
StartPoint
Gets or sets the position of where this connection starts.
Declaration
Point StartPoint { get; set; }
Property Value
Target
Gets or sets the target shape of this connection.
Declaration
IShape Target { get; set; }
Property Value
TargetCapSize
Gets or sets the size of the target cap (target decorator or arrow head).
Declaration
SizeF TargetCapSize { get; set; }
Property Value
System.
|
TargetCapType
Gets or sets the type of the target cap (target decorator or arrow head).
Declaration
CapType TargetCapType { get; set; }
Property Value
TargetConnectorPosition
Gets or sets the target connector position.
Declaration
string TargetConnectorPosition { get; set; }
Property Value
System.
|
Remarks
By default this is one of the standard position names defined in Connector
TargetConnectorResult
Gets the actual target connector of this connection if the connector is dynamically assigned (Auto).
Declaration
IConnector TargetConnectorResult { get; }
Property Value
UseFreeConnectors
Gets or sets whether the connection will choose free (not yet used) connector in the source / target shape when the source / target connector position is Auto.
Declaration
bool UseFreeConnectors { get; set; }
Property Value
System.
|
Methods
AddConnectionPoint(Point)
Adds an intermediate connection point.
Declaration
void AddConnectionPoint(Point point)
Parameters
Point
point
The (absolute canvas) position at which the new connection point should be added. |
Attach(IConnector, IConnector)
Attaches the connection to specific source and target.
Declaration
void Attach(IConnector source = null, IConnector target = null)
Parameters
IConnector
source
The source connector to attach to. |
IConnector
target
The target connector to attach to. |
GetCrossings()
Returns the information related to the crossing of this connection with other connections.
Declaration
CrossingsData GetCrossings()
Returns
InsertConnectionPoint(Point, Int32)
Inserts the connection point after the specific index.
Declaration
void InsertConnectionPoint(Point point, int after)
Parameters
Point
point
The point to add. |
System. The index after which it will be positioned. |
Remarks
The zero-position corresponds to the source points, the first position is the first intermediate point and the last index is the target point.
Update(Boolean)
Updates this connection.
Declaration
void Update(bool isManipulating = false)
Parameters
System. Should be set to |
UpdateDeferredGeometry(Point, Point, Point[])
Updates the deferred geometry.
Declaration
void UpdateDeferredGeometry(Point startPoint, Point endPoint, Point[] middlePoints)
Parameters
Events
ManipulationPointActivated
Occurs when a manipulation point (an adorner of the connection which allows you to alter an intermediate connection point) is activated.
Declaration
event EventHandler<ManipulationPointActivatedEventArgs<IConnectionEditPoint>> ManipulationPointActivated
Event Type
System.
|