Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents.UI Namespace > DocumentViewerView Class : ImageViewer Property |
public ImageViewer ImageViewer {get;}
'Declaration
Public ReadOnly Property ImageViewer As ImageViewer
'Usage
Dim instance As DocumentViewerView Dim value As ImageViewer value = instance.ImageViewer
public: property ImageViewer^ ImageViewer { ImageViewer^ get(); }
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 LTDocumentViewer.Text, the annotations for the pages used by Annotations and any optional debugging rendering done by LTDocumentViewer.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.