RichObject.DesignExt.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Drawing.Design;
  5. using System.Windows.Forms;
  6. using System.ComponentModel;
  7. using System.Drawing;
  8. using System.Drawing.Imaging;
  9. using System.Drawing.Text;
  10. using System.IO;
  11. using FastReport.TypeEditors;
  12. using FastReport.Utils;
  13. using FastReport.Code;
  14. using FastReport.Controls;
  15. using FastReport.Forms;
  16. namespace FastReport
  17. {
  18. partial class RichObject : IHasEditor
  19. {
  20. #region Public Methods
  21. /// <inheritdoc/>
  22. public bool InvokeEditor()
  23. {
  24. using (RichEditorForm form = new RichEditorForm(this))
  25. {
  26. if (form.ShowDialog() == DialogResult.OK)
  27. {
  28. actualTextStart = 0;
  29. actualTextLength = 0;
  30. return true;
  31. }
  32. }
  33. return false;
  34. }
  35. /// <inheritdoc/>
  36. public override SmartTagBase GetSmartTag()
  37. {
  38. return new RichObjectSmartTag(this);
  39. }
  40. /// <inheritdoc/>
  41. public override ContextMenuBase GetContextMenu()
  42. {
  43. return new TextObjectBaseMenu(Report.Designer);
  44. }
  45. #endregion
  46. }
  47. }