Class StreamDocumentSource
Inherited Members
Namespace: Telerik.Maui.Controls.PdfViewer
Assembly: Telerik.Maui.Controls.dll
Syntax
public class StreamDocumentSource : DocumentSource, INotifyPropertyChanged
Constructors
StreamDocumentSource()
Declaration
public StreamDocumentSource()
Properties
Stream
Gets or sets the delegate responsible for returning a Stream for the RadFixedDocument. The stream is closed automatically.
Declaration
public Func<CancellationToken, Task<Stream>> Stream { get; set; }
Property Value
System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<System.IO.Stream>>
|
Methods
Import(Stream)
Creates a RadFixedDocument to be used in the RadPdfViewer. The stream is not closed automatically.
Declaration
public void Import(Stream stream)
Parameters
System.IO.Stream
stream
|
ImportAsync(Stream)
Creates a RadFixedDocument asynchronously to be used in the RadPdfViewer. The stream is not closed automatically.
Declaration
public void ImportAsync(Stream stream)
Parameters
System.IO.Stream
stream
|
Operators
Implicit(Func<CancellationToken, Task<Stream>> to StreamDocumentSource)
Declaration
public static implicit operator StreamDocumentSource(Func<CancellationToken, Task<Stream>> streamFunc)
Parameters
System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<System.IO.Stream>>
streamFunc
|
Returns
StreamDocumentSource
|
Implicit(Stream to StreamDocumentSource)
Declaration
public static implicit operator StreamDocumentSource(Stream stream)
Parameters
System.IO.Stream
stream
|
Returns
StreamDocumentSource
|