menu

Blazor

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

    Show / Hide Table of Contents

    Class PdfViewerMeasurementSettings

    Represents the settings for measurements in the PDF viewer component in Blazor applications.

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

    This class manages the configuration for measurement-related properties, such as the conversion unit, depth, display unit, and scale ratio. It ensures that the settings are properly initialized and updated whenever parameters are set or changed.

    Examples

    Below is an example of how to use PdfViewerMeasurementSettings in a Blazor component:

    
    
    

    Constructors

    PdfViewerMeasurementSettings()

    Declaration
    public PdfViewerMeasurementSettings()

    Properties

    ChildContent

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

    ConversionUnit

    Defines the unit for measuring annotation. By default it is "in".

    Declaration
    public CalibrationUnit ConversionUnit { get; set; }
    Property Value
    Type
    CalibrationUnit

    Depth

    Defines the value for depth. By default it is 96.

    Declaration
    public int Depth { get; set; }
    Property Value
    Type
    System.Int32

    DisplayUnit

    Defines the display unit for measuring annotation. By default it is "inch".

    Declaration
    public CalibrationUnit DisplayUnit { get; set; }
    Property Value
    Type
    CalibrationUnit

    jsProperty

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

    mainParent

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

    ScaleRatio

    Defines the scale ratio for measuring annotation. By default it is "1". It will be multiplied the actual value of measurement and this multiplied value only displayed in UI.

    Declaration
    public double ScaleRatio { get; set; }
    Property Value
    Type
    System.Double

    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