drawOnClick Property

Summary

Automatically draws a full object on the first user click.

Syntax
TypeScript
JavaScript
Object.defineProperty(AnnRectangleDrawDesigner.prototype, 'drawOnClick', 
	get: function(), 
	set: function(value) 
) 
drawOnClick: boolean; 

Property Value

true to automatically draws a full object on the first user click; otherwise, false. The default value is false.

Remarks

When the value of DrawOnClick is false (the default value), the user must click to draw the first point of the rectangle (top-left corner), then drag and release to draw the second point (bottom-right). The object is added to the container only after the user finishes the entire operation.

When the value of DrawOnClick is set to true, then a new rectangle object is added to the container as soon as the user clicks to select the first point (top-left corner). The size of the rectangle is fixed to 100 by 100 annotation units.

Requirements

Target Platforms

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

Leadtools.Annotations.Designers Assembly