viewportSize Property

Summary

The size of the printed viewport, for reference, if PrintDocumentOptions.UseViewportLayout is used.

Syntax
TypeScript
JavaScript
Object.defineProperty(DocumentPrintData.prototype, 'viewportSize', 
	get: function(), 
	set: function(value) 
) 
viewportSize: LeadSizeD; 

Property Value

A LeadSizeD indicating the size of the viewport used for printing, or LeadSizeD.Empty if PrintDocumentOptions.UseViewportLayout is false.

Remarks

When PrintDocumentOptions.UseViewportLayout is true, the printed pages from PrintDocumentOptions.PagesList will be arranged based on their relative positions in the ImageViewer.ViewLayout of the DocumentViewerView.ImageViewer.

ViewportSize will be set to the ImageViewer.ControlSize to indicate the viewport being used. All image data for the pages will be available at ViewportImage.

For more information, refer to DocumentViewer.Print.

History

19.0.0.54
Added
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Viewer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.