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.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;} |
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.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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7