control Property

Summary

The target HTMLCanvasElement for the pan control.

Syntax
TypeScript
JavaScript
Object.defineProperty(ImageViewerPanControl.prototype, 'control', 
	get: function(), 
	set: function(value) 
) 
control: HTMLElement; 

Property Value

The target canvas element for the pan control. Default value is null.

Remarks

Set this property to an HTMLCanvasElement to act as the target of the pan control.

Once Control and ImageViewer are set, ImageViewerPanControl will render the content of the viewer into the target control along with a rectangle that shows the current visible area. If the value of EnablePan is set to true then clicking and dragging on the control surface will move the pan rectangle in the external control and pan the view in the image viewer accordingly.

Example

For an example, refer to ImageViewerPanControl.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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