Exemple #1
0
        public bool HitTest(IEnumerable <XPoint> points, ImmutableRect rect, object relativeTo, XBlock selected, bool findOnlyOne)
        {
            foreach (var point in points)
            {
                if (_blockHelper.HitTest(point, rect, relativeTo))
                {
                    if (selected != null)
                    {
                        selected.Points.Add(point);
                    }

                    if (findOnlyOne)
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }