Class SearchResultsModule
Represents the search result module in DocumentEditor.
Inheritance
System.Object
SearchResultsModule
Namespace: Syncfusion.Blazor.DocumentEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class SearchResultsModule : Object
Constructors
SearchResultsModule(BaseComponent)
Default constructor for SearchResults.
Declaration
public SearchResultsModule(BaseComponent baseComponent)
Parameters
Type | Name | Description |
---|---|---|
BaseComponent | baseComponent | An DocumentEdiorComponent instance. |
Properties
DocumentEditorComponent
DocumentEdiorComponent instance.
Declaration
protected BaseComponent DocumentEditorComponent { get; set; }
Property Value
Type | Description |
---|---|
BaseComponent |
Methods
Clear()
Clears all the instance of search result.
Declaration
public Task Clear()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Returns an asynchronous operation. |
GetIndex()
Gets the index of current search result.
Declaration
public Task<int> GetIndex()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | Returns an asynchronous operation of int type. |
GetLength()
Gets the length of search results.
Declaration
public Task<int> GetLength()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | Returns an asynchronous operation of int type. |
ReplaceAll(String)
Replace all the instance of search result.
Declaration
public Task ReplaceAll(string textToReplace)
Parameters
Type | Name | Description |
---|---|---|
System.String | textToReplace | Text to replace. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Returns an asynchronous operation. |
SetIndex(Int32)
Set the index of current search result.
Declaration
public void SetIndex(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | Index value. |