ClassManipulationPointService
Represents a service for manipulation of manipulation points.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public class ManipulationPointService : GraphServiceBase, IManipulationPointService
Inheritance: objectGraphServiceBaseManipulationPointService
Implements:
Inherited Members
Constructors
ManipulationPointService(IGraphInternal)
Initializes a new instance of the ManipulationPointService class.
Declaration
public ManipulationPointService(IGraphInternal graph)
Parameters
graph
The graph.
Properties
Connection
Gets or sets the connection.
Declaration
public IConnection Connection { get; set; }
Property Value
InitialPoints
Gets or sets the initial points.
Declaration
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public IList<Point> InitialPoints { get; set; }
Property Value
IList<Point>
The initial points.
IsManipulating
Gets a value indicating whether this instance is being manipulated.
Declaration
public bool IsManipulating { get; }
Property Value
true if this instance is manipulating; otherwise, false.
Implements
ManipulationPoint
Gets the manipulation point.
Declaration
public IConnectionEditPoint ManipulationPoint { get; set; }
Property Value
PointIndex
Gets or sets the index of the point being manipulated.
Declaration
public int PointIndex { get; set; }
Property Value
The index of the point.
Methods
CleanManipulation()
Cleans / reverts the manipulation.
Declaration
public void CleanManipulation()
Implements
CompleteManipulation(Point)
Completes the manipulation.
Declaration
public virtual bool CompleteManipulation(Point currentPoint)
Parameters
currentPoint
Point
The current point.
Returns
Implements
InitializeManipulation(IConnectionEditPoint)
Initializes the manipulation action.
Declaration
public virtual void InitializeManipulation(IConnectionEditPoint manipulationPoint)
Parameters
manipulationPoint
The manipulation point.
Implements
Manipulate(Point)
Updates the manipulation of intermediate connection points.
Declaration
public virtual void Manipulate(Point newPoint)
Parameters
newPoint
Point
The new point.
Implements
OnManipulationCompleted(ManipulationEventArgs)
Raises the event.
Declaration
public bool OnManipulationCompleted(ManipulationEventArgs args)
Parameters
args
The ManipulationEventArgs instance containing the event data.
Returns
Implements
OnManipulationStarted(IConnectionEditPoint, IConnector, Point)
Raises the event.
Declaration
public bool OnManipulationStarted(IConnectionEditPoint editPoint, IConnector connector, Point currentPosition)
Parameters
editPoint
The edit point.
connector
The connector.
currentPosition
Point
The current position.
Returns
Implements
StartManipulate(Point)
Manipulates the active manipulation point to the specified position.
Declaration
public virtual bool StartManipulate(Point currentPoint)
Parameters
currentPoint
Point
The current point.
Returns
Implements
Events
Manipulating
Occurs when manipulating.
Declaration
public event EventHandler Manipulating
Event Value
Implements
ManipulationCompleted
Occurs when manipulation is completed.
Declaration
public event EventHandler<ManipulationEventArgs> ManipulationCompleted
Event Value
Implements
ManipulationStarted
Occurs when manipulation is started.
Declaration
public event EventHandler<ManipulationEventArgs> ManipulationStarted
Event Value
Implements