PurplePen.RectCourseObj.GetHandleCursor C# (CSharp) Method

GetHandleCursor() public method

public GetHandleCursor ( PointF handlePoint ) : Cursor
handlePoint System.Drawing.PointF
return System.Windows.Forms.Cursor
        public override Cursor GetHandleCursor(PointF handlePoint)
        {
            // Get the correct sizing cursors for each point given above.
            int index = Array.IndexOf(GetHandles(), handlePoint);

            switch (index) {
            case 0: case 7: return Cursors.SizeNESW;
            case 1: case 6: return Cursors.SizeNS;
            case 2: case 5: return Cursors.SizeNWSE;
            case 3: case 4: return Cursors.SizeWE;
            default: return Util.MoveHandleCursor;
            }
        }