Class RadDiagramConnector
Represents a connector point.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Diagrams
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public class RadDiagramConnector : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IConnector, ISupportMouseOver, ICloneable, ISerializable
Constructors
RadDiagramConnector()
RadDiagramConnector
Declaration
public RadDiagramConnector()
Fields
ActivationChangedEvent
Identifies the ConnectorActivated routed event.
Declaration
public static RoutedEvent ActivationChangedEvent
Field Value
RoutedEvent
|
OffsetProperty
The Offset dependency property.
Declaration
public static readonly RadProperty OffsetProperty
Field Value
RadProperty
|
Properties
Offset
Gets or sets the offset of the top-left corner of the shape. A value of zero corresponds to the upper-left corner, while a value of one corresponds to the right side of the shape.
Values outside the [0,1]
range will position the connector outside the shape.
Declaration
public Point Offset { get; set; }
Property Value
Point
The connector's offset. |
Implements
Shape
Gets the associated shape.
Declaration
public IShape Shape { get; }
Property Value
IShape
|
Implements
Methods
CalculateRelativePosition(Size)
Calculate the relative position of this connector.
Declaration
public virtual Point CalculateRelativePosition(Size shapeSize)
Parameters
Size
shapeSize
Size of the shape. |
Returns
Point
The desired position of the connector's center. This position is relative to the parent shape's (connectorsControl's) position. |
Implements
CreateChildElements()
CreateChildElements
Declaration
protected override void CreateChildElements()
Overrides
Deserialize(SerializationInfo)
Deserializes the specified info.
Declaration
public virtual void Deserialize(SerializationInfo info)
Parameters
SerializationInfo
info
The info. |
Implements
HitTest(Point)
HitTest
Declaration
public override bool HitTest(Point point)
Parameters
System.Drawing.Point
point
point |
Returns
System.Boolean
bool |
Overrides
OnMouseDown(MouseEventArgs)
MouseEventArgs
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
e |
Overrides
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnOffsetChanged(Point, Point)
Called when [offset changed].
Declaration
protected virtual void OnOffsetChanged(Point oldOffset, Point newOffset)
Parameters
Point
oldOffset
The old offset. |
Point
newOffset
The new offset. |
PaintElement(IGraphics, Single, SizeF)
PaintElement
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
Serialize()
Serializes this instance.
Declaration
public virtual SerializationInfo Serialize()
Returns
SerializationInfo
|
Implements
Events
ActivationChanged
Declaration
public event EventHandler ActivationChanged
Event Type
System.EventHandler
|
OffsetChanged
Occurs when [offset changed].
Declaration
public event EventHandler<OffsetEventArgs> OffsetChanged
Event Type
System.EventHandler<OffsetEventArgs>
|
Explicit Interface Implementations
ICloneable.Clone()
Clones this instance.
Declaration
object ICloneable.Clone()
Returns
System.Object
|
Implements
IConnector.AbsolutePosition
Gets the absolute (actual or real) position.
Declaration
Point IConnector.AbsolutePosition { get; }
Returns
Point
The point where this connector's center is located on the diagram surface. |
Implements
IConnector.IsActive
Gets or sets a value indicating whether this instance is active.
Declaration
bool IConnector.IsActive { get; set; }
Returns
System.Boolean
|
Implements
ISupportMouseOver.get_IsMouseOver()
Declaration
bool ISupportMouseOver.get_IsMouseOver()
Returns
System.Boolean
|