using System.Drawing;
using FastReport.Utils;
namespace FastReport
{
///
/// Provides the "search" functionality in the preview and designer.
///
public interface ISearchable
{
///
/// Finds the specified text inside the object.
///
/// Text to find.
/// true to perform case-sensitive search.
/// true to find whole words only.
/// Array of character ranges that describes the occurences of text found;
/// null if text not found.
CharacterRange[] SearchText(string text, bool matchCase, bool wholeWord);
///
/// Draws the highlight to show the text found.
///
/// Draw event arguments.
/// Range of characters to highlight.
void DrawSearchHighlight(FRPaintEventArgs e, CharacterRange range);
}
}