ButtonControl.DesignExt.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using System.Drawing;
  2. using System.ComponentModel;
  3. using FastReport.Utils;
  4. using FastReport.Data;
  5. namespace FastReport.Dialog
  6. {
  7. partial class ButtonControl
  8. {
  9. #region Properties
  10. /// <inheritdoc/>
  11. [DefaultValue(false)]
  12. public override bool AutoSize
  13. {
  14. get { return base.AutoSize; }
  15. set { base.AutoSize = value; }
  16. }
  17. /// <inheritdoc/>
  18. [DefaultValue(ContentAlignment.MiddleCenter)]
  19. public override ContentAlignment TextAlign
  20. {
  21. get { return base.TextAlign; }
  22. set { base.TextAlign = value; }
  23. }
  24. /// <summary>
  25. /// This property is not relevant to this class.
  26. /// </summary>
  27. [Browsable(false)]
  28. public new bool AutoFilter
  29. {
  30. get { return base.AutoFilter; }
  31. set { base.AutoFilter = value; }
  32. }
  33. /// <summary>
  34. /// This property is not relevant to this class.
  35. /// </summary>
  36. [Browsable(false)]
  37. public new string DataColumn
  38. {
  39. get { return base.DataColumn; }
  40. set { base.DataColumn = value; }
  41. }
  42. /// <summary>
  43. /// This property is not relevant to this class.
  44. /// </summary>
  45. public new string ReportParameter
  46. {
  47. get { return base.ReportParameter; }
  48. set { base.ReportParameter = value; }
  49. }
  50. /// <summary>
  51. /// This property is not relevant to this class.
  52. /// </summary>
  53. [Browsable(false)]
  54. public new FilterOperation FilterOperation
  55. {
  56. get { return base.FilterOperation; }
  57. set { base.FilterOperation = value; }
  58. }
  59. #endregion
  60. #region Protected methods
  61. ///<inheritdoc/>
  62. protected override SelectionPoint[] GetSelectionPoints()
  63. {
  64. if (!AutoSize)
  65. return base.GetSelectionPoints();
  66. else
  67. return new SelectionPoint[]
  68. {
  69. new SelectionPoint(AbsLeft - 2, AbsTop - 2, SizingPoint.None)
  70. };
  71. }
  72. #endregion
  73. }
  74. }