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


Glossary Item Box

Gets or sets the maximum number of acceptable lines.

Syntax

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

Property Value

An int value that indicates the maximum number of lines.
The default is zero.

Remarks

MaxLineCount limits the acceptable lines of text when the GcTextBox.CountWrappedLine property is true and the GrapeCity.Win.Spread.InputMan.CellType.GcTextBox.Muilitline property is true as well. The default value of this property is zero, which means no limit.

Example

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

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.