LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

AcceptsReturn Property






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
public bool AcceptsReturn {get; set;}
'Declaration
 
Public Property AcceptsReturn As Boolean
'Usage
 
Dim instance As AnnTextEditDesigner
Dim value As Boolean
 
instance.AcceptsReturn = value
 
value = instance.AcceptsReturn
public bool AcceptsReturn {get; set;}
 get_AcceptsReturn();
set_AcceptsReturn(value);
public:
property bool AcceptsReturn {
   bool get();
   void set (    bool value);
}

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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnTextEditDesigner Class
AnnTextEditDesigner Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.