Class TelerikPdfViewer
The class for the Telerik PDF Viewer.
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikPdfViewer : BaseComponent, IDisposable
Constructors
TelerikPdfViewer()
Declaration
public TelerikPdfViewer()
Properties
ChildContent
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
Data
Specifies the file data of the component.
Declaration
public byte[] Data { get; set; }
Property Value
System.Byte[]
|
EnableLoaderContainer
Defines whether the loading container should be shown when there are long-running operations.
Declaration
public bool EnableLoaderContainer { get; set; }
Property Value
System.Boolean
|
Height
Specifies the height of the component.
Declaration
public string Height { get; set; }
Property Value
System.String
|
MaxZoom
Specifies the max zoom level.
Declaration
public Decimal MaxZoom { get; set; }
Property Value
System.Decimal
|
MinZoom
Specifies the min zoom level.
Declaration
public Decimal MinZoom { get; set; }
Property Value
System.Decimal
|
OnDownload
Triggered when a file is downloaded.
Declaration
public EventCallback<PdfViewerDownloadEventArgs> OnDownload { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<PdfViewerDownloadEventArgs>
|
OnError
Triggered when a file error is thrown.
Declaration
public EventCallback<PdfViewerErrorEventArgs> OnError { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<PdfViewerErrorEventArgs>
|
OnOpen
Triggered when a file is opened.
Declaration
public EventCallback<PdfViewerOpenEventArgs> OnOpen { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<PdfViewerOpenEventArgs>
|
Width
Specifies the width of the component.
Declaration
public string Width { get; set; }
Property Value
System.String
|
Zoom
Specifies the zoom level.
Declaration
public Decimal Zoom { get; set; }
Property Value
System.Decimal
|
ZoomChanged
Triggered when the zoom is changed.
Declaration
public EventCallback<Decimal> ZoomChanged { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<System.Decimal>
|
ZoomRate
Specifies the zoom rate.
Declaration
public Decimal ZoomRate { get; set; }
Property Value
System.Decimal
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
Dispose()
InitJsComponentAsync()
Declaration
protected Task InitJsComponentAsync()
Returns
System.Threading.Tasks.Task
|
OnAfterRenderAsync(Boolean)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
System.Boolean
firstRender
|
Returns
System.Threading.Tasks.Task
|
Overrides
Print()
Prints the loaded PDF file.
Declaration
public void Print()
Rebind()
Updates the component and processes the latest file data.
Declaration
public void Rebind()
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Microsoft.AspNetCore.Components.ParameterView
parameters
|
Returns
System.Threading.Tasks.Task
|