←Select platform

AutoSizeAfterEdit Property

Summary

Resizes the text object to adjust it to fit the boundary of the enclosing text.

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

Property Value

true to resize the text object to adjust it to fit the boundary of the enclosing text; otherwise, false. The default value is false.

Remarks

If the value of AutoSizeAfterEdit is false (the default value) and the user changes the text in the control using automation, the boundary of the object does not change.

If the value of AutoSizeAfterEdit is set to true:

  • The resize and rotation thumbs will be removed.
  • When the user changes the text in the control using automation, then AnnTextObject.AutoSize is called and the object's size is adjusted to contain the content of the new text.
  • The value of AutoSizeRotatedOnly controls whether to adjust the object's size if the text is rotated.

Requirements

Target Platforms

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

Leadtools.Annotations.Designers Assembly