New to Telerik UI for WPFStart a free 30-day trial

Represents a fixed document source, which can load a document from URI or stream.

Definition

Namespace:Telerik.Windows.Documents.Fixed

Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll

Syntax:

C#
public abstract class FixedDocumentStreamSource

Inheritance: objectFixedDocumentStreamSource

Derived Classes: PdfDocumentSource

Constructors

Initializes a new instance of the FixedDocumentStreamSource class.

C#
protected FixedDocumentStreamSource(Stream stream, PdfImportSettings settings)
Parameters:streamStream

The stream from which to load the fixed document.

settingsPdfImportSettings

The settings.

Initializes a new instance of the FixedDocumentStreamSource class.

C#
protected FixedDocumentStreamSource(Uri uri, PdfImportSettings settings)
Parameters:uriUri

The URI from which to load the fixed document.

settingsPdfImportSettings

The settings.

Properties

Document

RadFixedDocument

Gets the fixed document loaded from this instance.

C#
public RadFixedDocument Document { get; }

Methods

Ensures that any unmanaged resources are released when object instance is finalized.

C#
protected ~FixedDocumentStreamSource()

Creates the document from a stream.

C#
protected abstract RadFixedDocument CreateDocumentFromStreamOverride(Stream stream, PdfImportSettings settings)
Parameters:streamStream

The stream from which to create the document.

settingsPdfImportSettings

The settings.

Returns:

RadFixedDocument

Raises the event.

C#
protected virtual void OnDocumentLoaded(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnLoaded(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Events

DocumentUnhandledException

EventHandler<DocumentUnhandledExceptionEventArgs>

Occurs when unhandled exception is thrown during document import.

C#
public event EventHandler<DocumentUnhandledExceptionEventArgs> DocumentUnhandledException

Occurs when document is loaded. It can be loaded asynchronously in case the provided URI is absolute.

C#
public event EventHandler Loaded