IConnection
Represents a connection.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public interface IConnection : IDiagramItem, ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible
Derived Classes:
Inherited Members
Properties
Gets or sets the Bezier tension.
double BezierTension { get; set; }
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
IList<Point>
Gets the connection points.
IList<Point> ConnectionPoints { get; }
The positions are absolute coordinates with respect to the canvas.
Gets or sets the type of the connection.
ConnectionType ConnectionType { get; set; }
Gets or sets the position of where this connection ends.
Point EndPoint { get; set; }
Gets or sets a value indicating whether the default Bezier handles have been altered or an intermediate point have been added/removed.
bool IsModified { get; set; }
- This property is set to
trueas soon as one of the Bezier handles has been manually modified or the intermediate points have changed. If this property istruethe connection routing and the automatic bezier handles are halted. You re-enable this functionality by re-setting this property tofalse.
Gets the manipulation points (the adorning elements of the connection which allow you to alter an intermediate connection point).
IList<IConnectionEditPoint> ManipulationPoints { get; }
Gets or sets the size of the source cap (source decorator or arrow head).
SizeF SourceCapSize { get; set; }
Gets or sets the type of the source cap.
CapType SourceCapType { get; set; }
The type of the source cap.
Gets or sets the position of the source connector.
string SourceConnectorPosition { get; set; }
By default this is one of the standard position names defined in ConnectorPosition, but if one or more custom connectors are defined on the source shape this can be a custom connector name.
Gets the actual source connector of this connection if the connector is dynamically assigned (Auto).
IConnector SourceConnectorResult { get; }
Gets or sets the position of where this connection starts.
Point StartPoint { get; set; }
Gets or sets the size of the target cap (target decorator or arrow head).
SizeF TargetCapSize { get; set; }
Gets or sets the type of the target cap (target decorator or arrow head).
CapType TargetCapType { get; set; }
Gets or sets the target connector position.
string TargetConnectorPosition { get; set; }
By default this is one of the standard position names defined in ConnectorPosition, but if one or more custom connectors are defined on the target shape this can be a custom connector name.
Gets the actual target connector of this connection if the connector is dynamically assigned (Auto).
IConnector TargetConnectorResult { get; }
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.
bool UseFreeConnectors { get; set; }
Methods
Adds an intermediate connection point.
void AddConnectionPoint(Point point)
The (absolute canvas) position at which the new connection point should be added.
Attaches the connection to specific source and target.
void Attach(IConnector source = null, IConnector target = null)
The source connector to attach to.
targetIConnectorThe target connector to attach to.
Returns the information related to the crossing of this connection with other connections.
Inserts the connection point after the specific index.
Updates this connection.
void Update(bool isManipulating = false)
Should be set to true if any of the manipulation services (for instance RotationService, DraggingService) is active as a result of a user action.
Events
Occurs when a manipulation point (an adorner of the connection which allows you to alter an intermediate connection point) is activated.
event EventHandler<ManipulationPointActivatedEventArgs<IConnectionEditPoint>> ManipulationPointActivated