public cursorPositionResponse GetPosition(cursor lineCursor, Int32 tolerance = 1) { if (isNearToCorner(lineCursor.x, lineCursor.y, textCursorZoneCorner.Top, tolerance)) { return(cursorPositionResponse.atBeginning); } else if (isNearToCorner(lineCursor.x, lineCursor.y, textCursorZoneCorner.Bottom, tolerance)) { return(cursorPositionResponse.atEnd); } return(cursorPositionResponse.somewhereWithin); }
/// <summary> /// Builder to create subzones in speficied target. Target is <see cref="cursorZoneBuilder"/> class /// </summary> /// <param name="__target">The target.</param> public cursorZoneBuilder(cursorZone __target) { target = __target; c = new cursor(__target, textCursorMode.scroll, textCursorZone.outterZone); }