PolygonObject.DesignExt.cs 495 B

123456789101112131415161718192021
  1. using System.Drawing;
  2. using System.Drawing.Drawing2D;
  3. using FastReport.Utils;
  4. namespace FastReport
  5. {
  6. partial class PolygonObject
  7. {
  8. #region Public Methods
  9. /// <inheritdoc/>
  10. public override bool PointInObject(PointF point)
  11. {
  12. using (Pen pen = new Pen(Color.Black, 10))
  13. using (GraphicsPath path = getPolygonPath(pen, 1, 1))
  14. {
  15. return path.IsVisible(point);
  16. }
  17. }
  18. #endregion
  19. }
  20. }