Class
ManipulationPointService

Represents a service for manipulation of manipulation points.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class ManipulationPointService : GraphServiceBase, IManipulationPointService

Inheritance: objectGraphServiceBaseManipulationPointService

Implements: IManipulationPointService

Inherited Members GraphServiceBase.Graph

Constructors

ManipulationPointService(IGraphInternal)

Initializes a new instance of the ManipulationPointService class.

Declaration

cs-api-definition
public ManipulationPointService(IGraphInternal graph)

Parameters

graph

IGraphInternal

The graph.

Properties

Connection

Gets or sets the connection.

Declaration

cs-api-definition
public IConnection Connection { get; set; }

Property Value

IConnection

InitialPoints

Gets or sets the initial points.

Declaration

cs-api-definition
[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

cs-api-definition
public bool IsManipulating { get; }

Property Value

bool

true if this instance is manipulating; otherwise, false.

Implements IManipulationPointService.IsManipulating

ManipulationPoint

Gets the manipulation point.

Declaration

cs-api-definition
public IConnectionEditPoint ManipulationPoint { get; set; }

Property Value

IConnectionEditPoint

PointIndex

Gets or sets the index of the point being manipulated.

Declaration

cs-api-definition
public int PointIndex { get; set; }

Property Value

int

The index of the point.

Methods

CleanManipulation()

Cleans / reverts the manipulation.

Declaration

cs-api-definition
public void CleanManipulation()

Implements IManipulationPointService.CleanManipulation()

CompleteManipulation(Point)

Completes the manipulation.

Declaration

cs-api-definition
public virtual bool CompleteManipulation(Point currentPoint)

Parameters

currentPoint

Point

The current point.

Returns

bool

Implements IManipulationPointService.CompleteManipulation(Point)

InitializeManipulation(IConnectionEditPoint)

Initializes the manipulation action.

Declaration

cs-api-definition
public virtual void InitializeManipulation(IConnectionEditPoint manipulationPoint)

Parameters

manipulationPoint

IConnectionEditPoint

The manipulation point.

Implements IManipulationPointService.InitializeManipulation(IConnectionEditPoint)

Manipulate(Point)

Updates the manipulation of intermediate connection points.

Declaration

cs-api-definition
public virtual void Manipulate(Point newPoint)

Parameters

newPoint

Point

The new point.

Implements IManipulationPointService.Manipulate(Point)

OnManipulationCompleted(ManipulationEventArgs)

Raises the event.

Declaration

cs-api-definition
public bool OnManipulationCompleted(ManipulationEventArgs args)

Parameters

args

ManipulationEventArgs

The ManipulationEventArgs instance containing the event data.

Returns

bool

Implements IManipulationPointService.OnManipulationCompleted(ManipulationEventArgs)

OnManipulationStarted(IConnectionEditPoint, IConnector, Point)

Raises the event.

Declaration

cs-api-definition
public bool OnManipulationStarted(IConnectionEditPoint editPoint, IConnector connector, Point currentPosition)

Parameters

editPoint

IConnectionEditPoint

The edit point.

connector

IConnector

The connector.

currentPosition

Point

The current position.

Returns

bool

Implements IManipulationPointService.OnManipulationStarted(IConnectionEditPoint, IConnector, Point)

StartManipulate(Point)

Manipulates the active manipulation point to the specified position.

Declaration

cs-api-definition
public virtual bool StartManipulate(Point currentPoint)

Parameters

currentPoint

Point

The current point.

Returns

bool

Implements IManipulationPointService.StartManipulate(Point)

Events

Manipulating

Occurs when manipulating.

Declaration

cs-api-definition
public event EventHandler Manipulating

Event Value

EventHandler

Implements IManipulationPointService.Manipulating

ManipulationCompleted

Occurs when manipulation is completed.

Declaration

cs-api-definition
public event EventHandler<ManipulationEventArgs> ManipulationCompleted

Event Value

EventHandler<ManipulationEventArgs>

Implements IManipulationPointService.ManipulationCompleted

ManipulationStarted

Occurs when manipulation is started.

Declaration

cs-api-definition
public event EventHandler<ManipulationEventArgs> ManipulationStarted

Event Value

EventHandler<ManipulationEventArgs>

Implements IManipulationPointService.ManipulationStarted