ShapePoint.DesingExt.cs 828 B

1234567891011121314151617181920212223242526272829
  1. using FastReport.Utils;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Drawing;
  5. using System.Text;
  6. namespace FastReport.Map
  7. {
  8. partial class ShapePoint
  9. {
  10. private void DrawDesign(FRPaintEventArgs e, ref Brush brush, ref float size)
  11. {
  12. // display the selection in the designer
  13. Report report = Map.Report;
  14. if (report != null && report.IsDesigning && report.Designer != null &&
  15. report.Designer.SelectedObjects != null)
  16. {
  17. if (report.Designer.SelectedObjects.Contains(this))
  18. brush = e.Cache.GetBrush(Color.Orange);
  19. }
  20. // display the selection in the preview
  21. if (Map.HotPoint == this)
  22. {
  23. size *= 1.5f;
  24. }
  25. }
  26. }
  27. }