TableCell.DesignExt.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. using System;
  2. using System.ComponentModel;
  3. using System.Windows.Forms;
  4. using System.Drawing;
  5. using FastReport.Utils;
  6. using FastReport.Controls;
  7. namespace FastReport.Table
  8. {
  9. partial class TableCell
  10. {
  11. #region Properties
  12. /// <summary>
  13. /// This property is not relevant to this class.
  14. /// </summary>
  15. [Browsable(false)]
  16. public override AnchorStyles Anchor
  17. {
  18. get { return base.Anchor; }
  19. set { base.Anchor = value; }
  20. }
  21. /// <summary>
  22. /// This property is not relevant to this class.
  23. /// </summary>
  24. [Browsable(false)]
  25. public override DockStyle Dock
  26. {
  27. get { return base.Dock; }
  28. set { base.Dock = value; }
  29. }
  30. /// <summary>
  31. /// This property is not relevant to this class.
  32. /// </summary>
  33. [Browsable(false)]
  34. public new bool CanGrow
  35. {
  36. get { return base.CanGrow; }
  37. set { base.CanGrow = value; }
  38. }
  39. /// <summary>
  40. /// This property is not relevant to this class.
  41. /// </summary>
  42. [Browsable(false)]
  43. public new bool CanShrink
  44. {
  45. get { return base.CanShrink; }
  46. set { base.CanShrink = value; }
  47. }
  48. /// <summary>
  49. /// This property is not relevant to this class.
  50. /// </summary>
  51. [Browsable(false)]
  52. public new bool GrowToBottom
  53. {
  54. get { return base.GrowToBottom; }
  55. set { base.GrowToBottom = value; }
  56. }
  57. /// <summary>
  58. /// This property is not relevant to this class.
  59. /// </summary>
  60. [Browsable(false)]
  61. public new bool AutoWidth
  62. {
  63. get { return base.AutoWidth; }
  64. set { base.AutoWidth = value; }
  65. }
  66. /// <summary>
  67. /// This property is not relevant to this class.
  68. /// </summary>
  69. [Browsable(false)]
  70. public new Duplicates Duplicates
  71. {
  72. get { return base.Duplicates; }
  73. set { base.Duplicates = value; }
  74. }
  75. /// <summary>
  76. /// This property is not relevant to this class.
  77. /// </summary>
  78. [Browsable(false)]
  79. public new ShiftMode ShiftMode
  80. {
  81. get { return base.ShiftMode; }
  82. set { base.ShiftMode = value; }
  83. }
  84. /// <summary>
  85. /// This property is not relevant to this class.
  86. /// </summary>
  87. [Browsable(false)]
  88. public override float Left
  89. {
  90. get { return base.Left; }
  91. set { base.Left = value; }
  92. }
  93. /// <summary>
  94. /// This property is not relevant to this class.
  95. /// </summary>
  96. [Browsable(false)]
  97. public override float Top
  98. {
  99. get { return base.Top; }
  100. set { base.Top = value; }
  101. }
  102. #endregion
  103. #region Public Methods
  104. /// <inheritdoc/>
  105. public override void HandleMouseHover(FRMouseEventArgs e)
  106. {
  107. if (PointInObject(new PointF(e.x, e.y)))
  108. e.handled = true;
  109. }
  110. /// <inheritdoc/>
  111. public override bool PointInObject(PointF point)
  112. {
  113. return base.PointInObject(point) && !Table.IsInsideSpan(this);
  114. }
  115. /// <inheritdoc/>
  116. public override void HandleMouseDown(FRMouseEventArgs e)
  117. {
  118. // do nothing
  119. }
  120. /// <inheritdoc/>
  121. public override void HandleMouseMove(FRMouseEventArgs e)
  122. {
  123. // do nothing
  124. }
  125. /// <inheritdoc/>
  126. public override void HandleMouseUp(FRMouseEventArgs e)
  127. {
  128. // do nothing
  129. }
  130. /// <inheritdoc/>
  131. public override void HandleDragOver(FRMouseEventArgs e)
  132. {
  133. // do nothing
  134. }
  135. /// <inheritdoc/>
  136. public override void HandleDragDrop(FRMouseEventArgs e)
  137. {
  138. // do nothing
  139. }
  140. /// <inheritdoc/>
  141. public override void HandleDoubleClick()
  142. {
  143. Table.HandleCellDoubleClick(this);
  144. }
  145. /// <inheritdoc/>
  146. public override ContextMenuBase GetContextMenu()
  147. {
  148. return Table.GetCellContextMenu(this);
  149. }
  150. /// <inheritdoc/>
  151. public override SmartTagBase GetSmartTag()
  152. {
  153. return Table.GetCellSmartTag(this);
  154. }
  155. /// <inheritdoc/>
  156. public override void SelectionChanged()
  157. {
  158. base.SelectionChanged();
  159. if (Parent != null)
  160. Parent.SelectionChanged();
  161. }
  162. /// <inheritdoc/>
  163. public override string GetDisplayText()
  164. {
  165. string defaultText = base.GetDisplayText();
  166. if (IsDesigning && Table != null)
  167. return Table.GetCellDisplayText(this, defaultText);
  168. return defaultText;
  169. }
  170. /// <inheritdoc/>
  171. public override void ProvideCustomItems(DataTreeView tree)
  172. {
  173. base.ProvideCustomItems(tree);
  174. if (Table != null)
  175. Table.ProvideCustomItems(this, tree);
  176. }
  177. #endregion
  178. }
  179. }