New to Telerik UI for .NET MAUI? Start a free 30-day trial

Represents a PDF document source that loads documents from a file path.

Definition

Constructors

Initializes a new instance of the FileDocumentSource class.

C#
public FileDocumentSource()

Initializes a new instance of the FileDocumentSource class with the specified file path and import mode.

C#
public FileDocumentSource(string filePath, bool isImportAsync = true)
Parameters:filePathstring

The path to the PDF file.

isImportAsyncbool

A value indicating whether the import operation should be performed asynchronously.

Properties

Gets or sets the path to the PDF file.

C#
public string FilePath { get; set; }
Property Value:

A string representing the file path.

Gets or sets a value indicating whether the document import should be performed asynchronously.

C#
public bool IsImportAsync { get; set; }
Property Value:

true if the import is asynchronous; otherwise, false.

Operators

Performs an implicit conversion from string to FileDocumentSource.

C#
public static implicit operator FileDocumentSource(string filePath)
Parameters:filePathstring

The file path to convert.

Returns:

FileDocumentSource

A new FileDocumentSource instance with the specified file path.