Spread WinForms 15
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcTextBox Class / Multiline Property


In This Topic
Multiline Property (GcTextBox)
In This Topic
Gets or sets whether the control can accept and display multiple lines of text.
Syntax
'Declaration
 
Public Property Multiline As Boolean
 
'Usage
 
Dim instance As GcTextBox
Dim value As Boolean
 
instance.Multiline = value
 
value = instance.Multiline

Property Value

True if the control is a multiline control; otherwise, false.
The default is false.
Remarks

A multiple-line control wraps text as the user types text, extending beyond the text box.

You can also add scroll bars to larger controls using the ScrollBars property. If no horizontal scroll bar is specified, the text in a multiple-line control automatically wraps.

On a form with no default buttons, pressing Enter will cause the focus to move to the next line in a multiple-line control. If a default button exists, you must press Ctrl+Enter to move to the next line. Also to insert a tab, you must press Ctrl+Tab.
See Also