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
OffsetProperty
The Offset dependency property.
Declaration
public static readonly RadProperty OffsetProperty
Field Value
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
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
Serialization The info. |
Implements
HitTest(Point)
HitTest
Declaration
public override bool HitTest(Point point)
Parameters
System. point |
Returns
System. bool |
Overrides
OnMouseDown(MouseEventArgs)
MouseEventArgs
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System. e |
Overrides
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
System.
|
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.
|
Overrides
OnOffsetChanged(Point, Point)
Called when [offset changed].
Declaration
protected virtual void OnOffsetChanged(Point oldOffset, Point newOffset)
Parameters
PaintElement(IGraphics, Single, SizeF)
PaintElement
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.
|
System.
|
Overrides
Serialize()
Serializes this instance.
Declaration
public virtual SerializationInfo Serialize()
Returns
Implements
Events
ActivationChanged
Declaration
public event EventHandler ActivationChanged
Event Type
System.
|
OffsetChanged
Occurs when [offset changed].
Declaration
public event EventHandler<OffsetEventArgs> OffsetChanged
Event Type
System.
|
Explicit Interface Implementations
ICloneable.Clone()
Clones this instance.
Declaration
object ICloneable.Clone()
Returns
System.
|
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.
|
Implements
ISupportMouseOver.get_IsMouseOver()
Declaration
bool ISupportMouseOver.get_IsMouseOver()
Returns
System.
|