Class PdfViewerDistanceSettings
Represents the settings for distance measurements in a PDF viewer component in Blazor applications.
Inheritance
Inherited Members
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
JsProperty
Gets or sets the JS interop property name used internally.
Declaration
protected override string JsProperty { get; set; }
Property Value
| Type |
|---|
| string |
Overrides
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
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
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
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
OnParametersSetAsync()
Applies parameter changes and updates child properties when needed.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type |
|---|
| Task |