MaskedTextBoxControl.DesignExt.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Windows.Forms;
  2. using System.Drawing;
  3. using FastReport.Utils;
  4. namespace FastReport.Dialog
  5. {
  6. partial class MaskedTextBoxControl
  7. {
  8. #region Protected Methods
  9. /// <inheritdoc/>
  10. protected override bool ShouldSerializeBackColor()
  11. {
  12. return BackColor != SystemColors.Window;
  13. }
  14. /// <inheritdoc/>
  15. protected override bool ShouldSerializeCursor()
  16. {
  17. return Cursor != Cursors.IBeam;
  18. }
  19. /// <inheritdoc/>
  20. protected override bool ShouldSerializeForeColor()
  21. {
  22. return ForeColor != SystemColors.WindowText;
  23. }
  24. /// <inheritdoc/>
  25. protected override SelectionPoint[] GetSelectionPoints()
  26. {
  27. return new SelectionPoint[] {
  28. new SelectionPoint(AbsLeft - 2, AbsTop + Height / 2, SizingPoint.LeftCenter),
  29. new SelectionPoint(AbsLeft + Width + 1, AbsTop + Height / 2, SizingPoint.RightCenter) };
  30. }
  31. #endregion
  32. }
  33. }