LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AcceptsReturn Property
See Also 
Leadtools.Annotations Namespace > AnnTextEditDesigner Class : AcceptsReturn Property



The AcceptsReturn Property is available in LEADTOOLS Document and Medical Imaging toolkits.

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

Visual Basic (Declaration) 
Public Property AcceptsReturn As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnTextEditDesigner
Dim value As Boolean
 
instance.AcceptsReturn = value
 
value = instance.AcceptsReturn
C# 
public bool AcceptsReturn {get; set;}
C++/CLI 
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 strockes are handled.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features