ISearchable.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. using System.Drawing;
  2. using FastReport.Utils;
  3. namespace FastReport
  4. {
  5. /// <summary>
  6. /// Provides the "search" functionality in the preview and designer.
  7. /// </summary>
  8. public interface ISearchable
  9. {
  10. /// <summary>
  11. /// Finds the specified text inside the object.
  12. /// </summary>
  13. /// <param name="text">Text to find.</param>
  14. /// <param name="matchCase"><b>true</b> to perform case-sensitive search.</param>
  15. /// <param name="wholeWord"><b>true</b> to find whole words only.</param>
  16. /// <returns>Array of character ranges that describes the occurences of text found;
  17. /// <b>null</b> if text not found.</returns>
  18. CharacterRange[] SearchText(string text, bool matchCase, bool wholeWord);
  19. /// <summary>
  20. /// Draws the highlight to show the text found.
  21. /// </summary>
  22. /// <param name="e">Draw event arguments.</param>
  23. /// <param name="range">Range of characters to highlight.</param>
  24. void DrawSearchHighlight(FRPaintEventArgs e, CharacterRange range);
  25. }
  26. }