Skip to main content

DocumentViewer Members

A control that allows you to preview, print, save, and export a document created with a PrintableLink or a report created with the DevExpress Reporting Suite.

Constructors

Name Description
DocumentViewer() Initializes a new instance of the DocumentViewer class.

Fields

Name Description
CommandsProperty static Identifies the Commands dependency property.
CurrentPageIndexProperty static Identifies the CurrentPageIndex dependency property.
DocumentSourceProperty static Identifies the DocumentSource dependency property.
DocumentViewModelProperty static Identifies the DocumentViewModel dependency property.
PageCountProperty static Identifies the PageCount dependency property.
ShowCommandBarProperty static Identifies the ShowCommandBar dependency property.
ZoomFactorProperty static Identifies the ZoomFactor dependency property.
ZoomModeProperty static Identifies the ZoomMode dependency property.

Properties

Name Description
Commands Provides access to DocumentViewer commands.
CurrentPageIndex Gets or sets the index of the current page. This is a dependency property.
DocumentSource Specifies an object that the Docuemnt Viewer converts to a document and displays. This is a dependency property.
DocumentViewModel This property is intended for internal use.
PageCount Gets the total number of pages in the opened document.
ShowCommandBar Gets or sets whether to show a DocumentViewer‘s command bar. This is a dependency property.
ZoomFactor Gets or sets the opened document’s zoom factor. This is a dependency property.
ZoomMode

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Export(ExportFormat, String) Exports the document with the specified name, path, and file format.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Save(String) Saves the opened document to the specified file in PRNX format.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
DocumentLoaded Occurs after the DocumentViewer loads a document.
See Also