UtilFormsGetCursorPanDirection Method

Translates the direction from one Point to another into a pan Cursor.

For example, comparing Point(x:=0, y:=1) with Point(x:=0, y:=2) will return PanSouth. (PanEast, PanWest, PanNorth, PanSouth, etc).

Definition

Namespace: DevCase.Core.Application.Forms
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Cursor GetCursorPanDirection(
	Point currentPosition,
	Point newPosition,
	Cursor defaultCursor
)

Parameters

currentPosition  Point
A Point that represents the current position.
newPosition  Point
A Point that represents the new / destination position.
defaultCursor  Cursor
A default Cursor to return in case of currentPosition and newPosition are equal.

Return Value

Cursor
The resulting pan Cursor.

See Also