Interface ISearchable
Provides the "search" functionality in the preview and designer.
Namespace: FastReport
Assembly: FastReport.dll
Syntax
public interface ISearchable
Methods
DrawSearchHighlight(FRPaintEventArgs, CharacterRange)
Draws the highlight to show the text found.
Declaration
void DrawSearchHighlight(FRPaintEventArgs e, CharacterRange range)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e | Draw event arguments. |
System.Drawing.CharacterRange | range | Range of characters to highlight. |
SearchText(String, Boolean, Boolean)
Finds the specified text inside the object.
Declaration
CharacterRange[] SearchText(string text, bool matchCase, bool wholeWord)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text to find. |
System.Boolean | matchCase | true to perform case-sensitive search. |
System.Boolean | wholeWord | true to find whole words only. |
Returns
Type | Description |
---|---|
System.Drawing.CharacterRange[] | Array of character ranges that describes the occurences of text found; null if text not found. |