Spread Windows Forms 7.0 Product Documentation
Multiline Property
See Also  Example Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcTextBoxCellType Class : Multiline Property


Glossary Item Box

Gets or sets whether the control can accept and display multiple lines of text.

Syntax

Visual Basic (Declaration) 
Public Property Multiline As Boolean
Visual Basic (Usage)Copy Code
Dim instance As GcTextBoxCellType
Dim value As Boolean
 
instance.Multiline = value
 
value = instance.Multiline
C# 
public bool Multiline {get; set;}

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 GcTextBox.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 causes 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.

Example

This example uses the Multiline property.
C#Copy Code
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType inputcell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
inputcell1.Multiline = true;
inputcell1.AcceptsCrLf = GrapeCity.Win.Spread.InputMan.CellType.CrLfMode.Cut;
fpSpread1.Sheets[0].Cells[1, 1].CellType = inputcell1;
VB.NETCopy Code
Dim inputcell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType
inputcell1.Multiline = True
inputcell1.AcceptsCrLf = GrapeCity.Win.Spread.InputMan.CellType.CrLfMode.Cut
FpSpread1.Sheets(0).Cells(1, 1).CellType = inputcell1

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.