예제 #1
0
        public Guideline GetGuide(Point p, RulerOrientation mode)
        {
            if (_Guides.Exists(g => (int)g.Info.Orientation == (int)mode && g.HitTest(p)))
            {
                return(_Guides.First(g => (int)g.Info.Orientation == (int)mode && g.HitTest(p)));
            }

            return(_Container.CreateGuide(p, mode));
        }