Exemplo n.º 1
0
        public Rect SelectStrokesByPoints(PointCollection points)
        {
            ClearStrokesSelection();
            var rect = _strokeContainer.SelectWithPolyLine(points);

            SelectStrokesEvent?.Invoke(this, EventArgs.Empty);
            return(rect);
        }
Exemplo n.º 2
0
        public void ClearStrokesSelection()
        {
            foreach (var stroke in GetStrokes())
            {
                stroke.Selected = false;
            }

            SelectStrokesEvent?.Invoke(this, EventArgs.Empty);
        }
Exemplo n.º 3
0
        public Rect SelectStrokes(IEnumerable <InkStroke> strokes)
        {
            ClearStrokesSelection();

            foreach (var stroke in strokes)
            {
                stroke.Selected = true;
            }

            SelectStrokesEvent?.Invoke(this, EventArgs.Empty);
            return(GetRectBySelectedStrokes());
        }