Revit.SDK.Samples.CurtainWallGrid.CS.GridDrawing.IsOverlapped C# (CSharp) Метод

IsOverlapped() приватный Метод

check whether the point is in the outline of the paths
private IsOverlapped ( System point, List paths ) : bool
point System /// the point to be checked ///
paths List /// the paths of the lines ///
Результат bool
        private bool IsOverlapped(System.Drawing.Point point, List<GraphicsPath> paths)
        {
            Pen pen = new Pen(System.Drawing.Color.Red, m_lockedPenWidth);

             foreach (GraphicsPath path in paths)
             {
            // the point is in the outline of the path, so the isOverlapped is true
            if (path.IsOutlineVisible(point, pen))
            {
               return true;
            }
             }

             // no overlap found, so return false
             return false;
        }