NumericUpDownControl.DesignExt.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System.ComponentModel;
  2. using System.Drawing;
  3. using FastReport.Utils;
  4. namespace FastReport.Dialog
  5. {
  6. partial class NumericUpDownControl
  7. {
  8. #region Properties
  9. /// <summary>
  10. /// This property is not relevant to this class.
  11. /// </summary>
  12. [Browsable(false)]
  13. public override string Text
  14. {
  15. get { return base.Text; }
  16. set { base.Text = value; }
  17. }
  18. #endregion
  19. #region Protected Methods
  20. /// <inheritdoc/>
  21. protected override bool ShouldSerializeBackColor()
  22. {
  23. return BackColor != SystemColors.Window;
  24. }
  25. /// <inheritdoc/>
  26. protected override bool ShouldSerializeForeColor()
  27. {
  28. return ForeColor != SystemColors.WindowText;
  29. }
  30. /// <inheritdoc/>
  31. protected override SelectionPoint[] GetSelectionPoints()
  32. {
  33. return new SelectionPoint[] {
  34. new SelectionPoint(AbsLeft - 2, AbsTop + Height / 2, SizingPoint.LeftCenter),
  35. new SelectionPoint(AbsLeft + Width + 1, AbsTop + Height / 2, SizingPoint.RightCenter) };
  36. }
  37. #endregion
  38. }
  39. }