Callback that needs to implement the constraints for the new location.

Namespace: yWorks.Canvas.Input
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

Syntax

C#
protected abstract PointD ConstrainNewLocation( IInputModeContext context, PointD originalLocation, PointD newLocation )
Visual Basic
Protected MustOverride Function ConstrainNewLocation ( _ context As IInputModeContext, _ originalLocation As PointD, _ newLocation As PointD _ ) As PointD

Parameters

context
Type: yWorks.Canvas.Input..::..IInputModeContext
The context in which the drag will be performed.
originalLocation
Type: yWorks.Canvas.Geometry.Structs..::..PointD
The value of the Location property at the time of InitializeDrag(IInputModeContext).
newLocation
Type: yWorks.Canvas.Geometry.Structs..::..PointD
The coordinates in the world coordinate system that the client wants the handle to be at. Depending on the implementation the Location may or may not be modified to reflect the new value.

Return Value

The constrained value of newLocation.

See Also