ChartDirector 6.2 (.NET Edition)

WPFViewPortControl.setCursor


Usage

[C#] public setCursor(int position, Cursor cursor);
[VB] Public Sub setCursor(position As Integer, cursor As Cursor)

Description

Sets the mouse cursors to be used at various parts of the control.

The WPFViewPortControl will use different mouse cursors when the mouse is over the four borders of the viewport rectangle as a feedback to the user that the borders can be dragged. Similarly, there are mouse cursors at the four corners, inside and outside of the viewport rectangle. In total, there can be 10 different mouse cursors.

Arguments

ArgumentDefaultDescription
position(Mandatory)The mouse cursor position to be set, which must be one of Left, Right, Top and Bottom for the 4 borders, and TopLeft, TopRight, BottomLeft, BottomRight for the 4 corners, Center for inside the viewport and 0 for outside the viewport.
cursor(Mandatory)The mouse cursor to use at the specified position.

Return Value

None