menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SearchResultsModule - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SearchResultsModule

    Represents the search result module in DocumentEditor.

    Inheritance
    System.Object
    SearchResultsModule
    Namespace: Syncfusion.Blazor.DocumentEditor
    Assembly: Syncfusion.Blazor.DocumentEditor.dll
    Syntax
    public class SearchResultsModule : Object

    Constructors

    SearchResultsModule(SfDocumentEditor)

    Initializes a new instance of the SearchResultsModule class. Default constructor for SearchResults.

    Declaration
    public SearchResultsModule(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

    Methods

    ClearAsync()

    Clears all the instance of search result.

    Declaration
    public Task ClearAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Returns an asynchronous operation.

    GetIndexAsync()

    Gets the index of current search result.

    Declaration
    public Task<int> GetIndexAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Int32>

    Returns an asynchronous operation of int type.

    GetLengthAsync()

    Gets the length of search results.

    Declaration
    public Task<int> GetLengthAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Int32>

    Returns an asynchronous operation of int type.

    ReplaceAllAsync(String)

    Replace all the instance of search result.

    Declaration
    public Task ReplaceAllAsync(string textToReplace)
    Parameters
    Type Name Description
    System.String textToReplace

    Text to replace.

    Returns
    Type Description
    System.Threading.Tasks.Task

    Returns an asynchronous operation.

    SetIndexAsync(Int32)

    Set the index of current search result.

    Declaration
    public void SetIndexAsync(int value)
    Parameters
    Type Name Description
    System.Int32 value

    Index value.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved