Class SearchModule
Represents the search module in DocumentEditor.
Inheritance
System.Object
SearchModule
Namespace: Syncfusion.Blazor.DocumentEditor
Assembly: Syncfusion.Blazor.DocumentEditor.dll
Syntax
public class SearchModule : Object
Constructors
SearchModule(SfDocumentEditor)
Initializes a new instance of the SearchModule class. Default constructor for Search.
Declaration
public SearchModule(SfDocumentEditor baseComponent)
Parameters
Type | Name | Description |
---|---|---|
SfDocumentEditor | baseComponent | An DocumentEdiorComponent instance. |
Properties
DocumentEditor
DocumentEdiorComponent instance.
Declaration
protected SfDocumentEditor DocumentEditor { get; set; }
Property Value
Type |
---|
SfDocumentEditor |
SearchResults
Gets the search results object.
Declaration
public SearchResultsModule SearchResults { get; }
Property Value
Type | Description |
---|---|
SearchResultsModule | Returns SearchResultsModule. |
Methods
FindAllAsync(String, Nullable<FindOption>)
Finds all occurrence of specified text in the document.
Declaration
public Task FindAllAsync(string text, Nullable<FindOption> findOptions = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text to find. |
System.Nullable<FindOption> | findOptions | Find options, refer FindOption. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Returns an asynchronous operation. |