ClassTelerikPdfViewer
The class for the Telerik PDF Viewer.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikPdfViewer : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikPdfViewer
Implements:
Inherited Members
Constructors
TelerikPdfViewer()
Declaration
public TelerikPdfViewer()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Data
Specifies the file data of the component.
DialogFactory
Declaration
[CascadingParameter]
protected DialogFactory DialogFactory { get; set; }
Property Value
EnableLoaderContainer
Defines whether the loading container should be shown when there are long-running operations.
Declaration
[Parameter]
public bool EnableLoaderContainer { get; set; }
Property Value
Height
Specifies the height of the component.
MaxZoom
Specifies the max zoom level.
Declaration
[Parameter]
public decimal MaxZoom { get; set; }
Property Value
MinZoom
Specifies the min zoom level.
Declaration
[Parameter]
public decimal MinZoom { get; set; }
Property Value
OnDownload
Triggered when a file is downloaded.
Declaration
[Parameter]
public EventCallback<PdfViewerDownloadEventArgs> OnDownload { get; set; }
Property Value
OnError
Triggered when a file error is thrown.
Declaration
[Parameter]
public EventCallback<PdfViewerErrorEventArgs> OnError { get; set; }
Property Value
OnOpen
Triggered when a file is opened.
Declaration
[Parameter]
public EventCallback<PdfViewerOpenEventArgs> OnOpen { get; set; }
Property Value
Width
Specifies the width of the component.
Zoom
Specifies the zoom level.
ZoomChanged
Triggered when the zoom is changed.
Declaration
[Parameter]
public EventCallback<decimal> ZoomChanged { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
Rebind()
Updates the component and processes the latest file data.
Declaration
public void Rebind()
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides