←Select platform

DrawOnClick Property

Summary

Automatically draws a complete object on the first user click.

Syntax
C#
VB
C++
public bool DrawOnClick { get; set; } 
Public Property DrawOnClick() As Boolean 
   Get 
   Set 
public:  
   property bool DrawOnClick 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

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

Remarks

When DrawOnClick is false (the default value), the user must click to draw the first point of the rectangle (top-left corner), and 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 DrawOnClick is set to true, 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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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