Image viewer control.
Object.defineProperty(DocumentViewerView.prototype, 'imageViewer',
get: function()
)
imageViewer: ImageViewer; // read-only
The ImageViewer control used to view the main content of the document.
ImageViewer is initialized during CreateDocumentViewer. A new instance of ImageViewer is created and set in this property. The control is added as a child to DocumentViewerCreateOptions.ViewContainer and initialized as follows:
Member | Description |
---|---|
ViewHorizontalAlignment and ViewVerticalAlignment | |
ImageHorizontalAlignment and ImageVerticalAlignment | |
ImageBorderThickness |
1 |
ImageBackgroundColor |
White color |
ItemPadding |
4, 4, 4, 4 |
UseDpi |
true |
ImageViewer.Tag | Set to the owner DocumentViewer. Be careful not to modify this value in your application. |
In addition to the above, the document viewer subscribes to the PostRenderItem event to render the current text selection used by DocumentViewer.Text, the annotations for the pages used by Annotations and any optional debugging rendering done by DocumentViewer.Diagnostics.
After CreateDocumentViewer returns, you can further customize or use this ImageViewer control as needed by your application.
For an example, refer to DocumentViewer.View.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document