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; }