ClassFileDocumentSource
Represents a PDF document source that loads documents from a file path.
Definition
Namespace:Telerik.Maui.Controls.PdfViewer
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class FileDocumentSource : DocumentSource, INotifyPropertyChanged
Inheritance: objectNotifyPropertyChangedBaseDocumentSourceFileDocumentSource
Implements:
Inherited Members
Constructors
FileDocumentSource()
Initializes a new instance of the FileDocumentSource class.
Declaration
public FileDocumentSource()
FileDocumentSource(string, bool)
Initializes a new instance of the FileDocumentSource class with the specified file path and import mode.
Properties
FilePath
Gets or sets the path to the PDF file.
IsImportAsync
Gets or sets a value indicating whether the document import should be performed asynchronously.
Declaration
public bool IsImportAsync { get; set; }
Property Value
true
if the import is asynchronous; otherwise, false
.
Operators
implicit operator FileDocumentSource(string)
Performs an implicit conversion from string to FileDocumentSource.
Declaration
public static implicit operator FileDocumentSource(string filePath)
Parameters
filePath
The file path to convert.
Returns
A new FileDocumentSource instance with the specified file path.