/// <summary> /// Indicates whether the specified point is contained within the annotation. /// </summary> /// <param name="point">Point in image space.</param> /// <returns><b>true</b> if the specified point is contained within the annotation; /// otherwise, <b>false</b>.</returns> public override bool IsPointOnFigure(PointF point) { using (IGraphicsPath path = ((MarkAnnotationRenderer)Renderer).GetAsGraphicsPath(DrawingFactory.Default)) { path.Transform(GetTransformFromContentToImageSpace()); using (IDrawingPen pen = DrawingFactory.Default.CreatePen(Outline)) { return(path.Contains(point) || path.OutlineContains(point, pen)); } } }