StreamDocumentSource
Represents a PDF document source that loads documents from a stream.
Definition
Namespace:Telerik.Maui.Controls.PdfViewer
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class StreamDocumentSource : DocumentSource, INotifyPropertyChanged
Inheritance: objectNotifyPropertyChangedBaseDocumentSourceStreamDocumentSource
Implements:
Inherited Members
Constructors
Initializes a new instance of the StreamDocumentSource class.
public StreamDocumentSource()
Properties
Gets or sets the delegate responsible for returning a Stream for the RadFixedDocument. The stream is closed automatically.
public Func<CancellationToken, Task<Stream>> Stream { get; set; }
Methods
Creates a RadFixedDocument to be used in the RadPdfViewer. The stream is not closed automatically.
Creates a RadFixedDocument asynchronously to be used in the RadPdfViewer. The stream is not closed automatically.
Operators
Performs an implicit conversion from Func<T, TResult> to StreamDocumentSource.
public static implicit operator StreamDocumentSource(Func<CancellationToken, Task<Stream>> streamFunc)
The function that provides the stream.
Returns:A new StreamDocumentSource instance with the specified stream function.
Performs an implicit conversion from Stream to StreamDocumentSource.
public static implicit operator StreamDocumentSource(Stream stream)
The stream to convert.
Returns:A new StreamDocumentSource instance that imports the specified stream.