alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class PdfViewerDistanceSettings

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

    Inheritance
    object
    PdfViewerAnnotationSettings
    PdfViewerShapeSettings
    PdfViewerLineSettings
    PdfViewerDistanceSettings
    Inherited Members
    PdfViewerAnnotationSettings.AllowedInteractions
    PdfViewerAnnotationSettings.Author
    PdfViewerAnnotationSettings.ChildContent
    PdfViewerAnnotationSettings.CustomData
    PdfViewerAnnotationSettings.IsLock
    PdfViewerAnnotationSettings.IsPrint
    PdfViewerAnnotationSettings.jsProperty
    PdfViewerAnnotationSettings.mainParent
    PdfViewerAnnotationSettings.MaxHeight
    PdfViewerAnnotationSettings.MaxWidth
    PdfViewerAnnotationSettings.MinHeight
    PdfViewerAnnotationSettings.MinWidth
    PdfViewerAnnotationSettings.SkipDownload
    PdfViewerAnnotationSettings.SkipPrint
    PdfViewerLineSettings.LineHeadEndStyle
    PdfViewerLineSettings.LineHeadStartStyle
    PdfViewerShapeSettings.AnnotationSelectorSettings
    PdfViewerShapeSettings.BorderDashArray
    PdfViewerShapeSettings.FillColor
    PdfViewerShapeSettings.Opacity
    PdfViewerShapeSettings.StrokeColor
    PdfViewerShapeSettings.Thickness
    Namespace: Syncfusion.Blazor.SfPdfViewer
    Assembly: Syncfusion.Blazor.SfPdfViewer.dll
    Syntax
    public class PdfViewerDistanceSettings : PdfViewerLineSettings
    Remarks

    This class provides functionality to manage and initialize settings for distance measurements in a PDF viewer, such as specifying the leader length, line head style, and other related configurations for distance annotations. 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 PdfViewerDistanceSettings in a Blazor component:

    Constructors

    PdfViewerDistanceSettings()

    Declaration
    public PdfViewerDistanceSettings()

    Properties

    JsNamespace

    Gets or sets the JavaScript interop namespace for this component.

    Declaration
    protected override string JsNamespace { get; set; }
    Property Value
    Type
    string
    Overrides
    PdfViewerLineSettings.JsNamespace

    JsProperty

    Gets or sets the JS interop property name used internally.

    Declaration
    protected override string JsProperty { get; set; }
    Property Value
    Type
    string
    Overrides
    PdfViewerLineSettings.JsProperty

    LeaderLength

    Defines the leader length of the annotation. By default it is 40.

    Declaration
    [Parameter]
    [JsonPropertyName("leaderLength")]
    public double LeaderLength { get; set; }
    Property Value
    Type
    double

    MainParent

    Gets or sets the parent base component reference.

    Declaration
    protected override SfBaseComponent MainParent { get; set; }
    Property Value
    Type
    SfBaseComponent
    Overrides
    PdfViewerLineSettings.MainParent

    SfTagIndex

    Gets or sets tag index used to compose the JS namespace within the parent hierarchy.

    Declaration
    protected override int SfTagIndex { get; set; }
    Property Value
    Type
    int
    Overrides
    PdfViewerLineSettings.SfTagIndex

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    PdfViewerLineSettings.BuildRenderTree(RenderTreeBuilder)

    OnInitializedAsync()

    Performs asynchronous initialization for the component.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A task that represents the asynchronous initialization operation.

    Overrides
    PdfViewerLineSettings.OnInitializedAsync()

    OnParametersSetAsync()

    Applies parameter changes and updates child properties when needed.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    Task
    Overrides
    PdfViewerLineSettings.OnParametersSetAsync()
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved