ClassPdfViewerOpenEventArgs
Provides data for the PDF Viewer file open event, including file information and cancellation capability. Use this to validate files before opening, implement custom file processing, or prevent unauthorized file access.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class PdfViewerOpenEventArgs : ICancellableEventArgs
Inheritance: objectPdfViewerOpenEventArgs
Implements:
Constructors
PdfViewerOpenEventArgs()
Declaration
public PdfViewerOpenEventArgs()
Properties
Files
Gets the collection of files selected for opening in the PDF Viewer. Contains file metadata including name, size, and type information for validation and processing. Typically contains a single PDF file, but the collection structure supports potential future enhancements.
Declaration
public List<FileSelectFileInfo> Files { get; set; }
Property Value
IsCancelled
Gets or sets whether the file opening operation should be cancelled. Set to true to prevent the file from loading, useful for file validation, security checks, or user confirmation scenarios. When cancelled, the PDF Viewer will not process or display the selected file.