←Select platform

AcceptsReturn Property

Summary

Gets or sets a value indicating whether pressing ENTER creates a new line of text in the control or activates the default button for the form.

Syntax

C#
VB
C++
public bool AcceptsReturn { get; set; } 
  
Public Property AcceptsReturn As Boolean 
public: 
property bool AcceptsReturn { 
   bool get(); 
   void set (    bool ); 
} 

Property Value

true if the ENTER key creates a new line of text in a multiline version of the control; false if the ENTER key activates the default button for the form. The default is false.

Remarks

The AnnTextEditDesigner class creates a standard System.Windows.Forms.TextBox control when activated. It will automatically set the value System.Windows.Forms.TextBox.Multiline to true to support multiple-lines in the text box. The AcceptsReturn property will be set in the System.Windows.Forms.TextBox.AcceptsReturn of the created text box control to control how ENTER key strokes are handled.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations Assembly