/// <summary> /// Test whether object contains point /// </summary> public override bool Contains(Point point) { LineGeometry g = new LineGeometry(lineStart, lineEnd); return g.StrokeContains(new Pen(Brushes.Black, LineHitTestWidth), point); }