PictureBoxControl.DesignExt.cs 1006 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.ComponentModel;
  2. using System.Windows.Forms;
  3. using FastReport.Utils;
  4. namespace FastReport.Dialog
  5. {
  6. partial class PictureBoxControl
  7. {
  8. #region Properties
  9. /// <summary>
  10. /// This property is not relevant to this class.
  11. /// </summary>
  12. [Browsable(false)]
  13. public new string Text
  14. {
  15. get { return base.Text; }
  16. set { base.Text = value; }
  17. }
  18. #endregion
  19. #region Private Methods
  20. private bool ShouldSerializeImage()
  21. {
  22. return Image != null;
  23. }
  24. #endregion
  25. #region Protected Methods
  26. /// <inheritdoc/>
  27. protected override SelectionPoint[] GetSelectionPoints()
  28. {
  29. if (PictureBox.SizeMode == PictureBoxSizeMode.AutoSize)
  30. return new SelectionPoint[] { new SelectionPoint(AbsLeft - 2, AbsTop - 2, SizingPoint.None) };
  31. return base.GetSelectionPoints();
  32. }
  33. #endregion
  34. }
  35. }