menu

Blazor

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

    Show / Hide Table of Contents

    Class PdfViewerTextSearchColorSettings

    Represents the text search color settings for the PDF Viewer component.

    Inheritance
    System.Object
    PdfViewerTextSearchColorSettings
    Namespace: Syncfusion.Blazor.SfPdfViewer
    Assembly: Syncfusion.Blazor.SfPdfViewer.dll
    Syntax
    public class PdfViewerTextSearchColorSettings : SfBaseComponent
    Remarks

    This class allows configuring the colors used for highlighting search results and other occurrences in the PDF Viewer.

    Examples

    Below is an example of how to configure PdfViewerTextSearchColorSettings in a Blazor component:

    
    
    

    Constructors

    PdfViewerTextSearchColorSettings()

    Declaration
    public PdfViewerTextSearchColorSettings()

    Properties

    ChildContent

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.RenderFragment

    jsProperty

    Declaration
    protected string jsProperty { get; set; }
    Property Value
    Type
    System.String

    mainParent

    Declaration
    protected SfBaseComponent mainParent { get; set; }
    Property Value
    Type
    SfBaseComponent

    SearchColor

    Gets or Sets the color of the other occurrence of the text searched string.By default it is '#8b4c12'

    Declaration
    public string SearchColor { get; set; }
    Property Value
    Type
    System.String

    SearchHighlightColor

    Gets or Sets the color of the current occurrence of the text searched string.By default it is '#fdd835'

    Declaration
    public string SearchHighlightColor { get; set; }
    Property Value
    Type
    System.String

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    GetJSNamespace()

    Declaration
    public string GetJSNamespace()
    Returns
    Type
    System.String

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    System.Threading.Tasks.Task

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved