public Rect SelectStrokesByPoints(PointCollection points) { ClearStrokesSelection(); var rect = _strokeContainer.SelectWithPolyLine(points); SelectStrokesEvent?.Invoke(this, EventArgs.Empty); return(rect); }
public void ClearStrokesSelection() { foreach (var stroke in GetStrokes()) { stroke.Selected = false; } SelectStrokesEvent?.Invoke(this, EventArgs.Empty); }
public Rect SelectStrokes(IEnumerable <InkStroke> strokes) { ClearStrokesSelection(); foreach (var stroke in strokes) { stroke.Selected = true; } SelectStrokesEvent?.Invoke(this, EventArgs.Empty); return(GetRectBySelectedStrokes()); }