Spread Windows Forms 15.0
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcTextBox Class / AcceptsReturn Property


In This Topic
    AcceptsReturn Property (GcTextBox)
    In This Topic
    Gets or sets a value that indicates whether pressing ENTER in a multiline Text control creates a new line of text in the control.
    Syntax
    'Declaration
     
    
    Public Property AcceptsReturn As Boolean
    'Usage
     
    
    Dim instance As GcTextBox
    Dim value As Boolean
     
    instance.AcceptsReturn = value
     
    value = instance.AcceptsReturn
    public bool AcceptsReturn {get; set;}

    Property Value

    A bool value, true if it creates a new line of text in the control; otherwise, false.
    The default is false.
    Remarks
    If the value of this property is false, the user must press CTRL+ENTER to create a new line in a multiline GrapeCity.Win.Input.Edit control. If there is no default button for the form, then the ENTER key will always create a new line of text in the control, no matter what the value of this property.
    See Also