Gets or sets the maximum length of text in the cell.
Syntax
Visual Basic (Declaration) | |
---|
Public Property MaxLength As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As TextCellType
Dim value As Integer
instance.MaxLength = value
value = instance.MaxLength |
C# | |
---|
public int MaxLength {get; set;} |
Property Value
Integer number of characters in the length
Remarks
Example
This example sets the maximum size for a text cell by setting the length to five characters.
C# | Copy Code |
---|
FarPoint.Web.Spread.TextCellType textcell = new FarPoint.Web.Spread.TextCellType();
textcell.MaxLength = 5;
FpSpread1.Sheets[0].Cells[0, 0].CellType = textcell;
|
Visual Basic | Copy Code |
---|
Dim textcell As New FarPoint.Web.Spread.TextCellType()
textcell.MaxLength = 5
FpSpread1.Sheets(0).Cells(0, 0).CellType = textcell
|
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also