Spread Windows Forms 12.0 Product Documentation
AcceptsTabChar Property (GcTextBoxCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcTextBoxCellType Class : AcceptsTabChar Property
Gets or sets a value that indicates how to process the Tab characters when copying, cutting, or pasting the string.
Syntax
'Declaration
 
Public Property AcceptsTabChar As TabCharMode
'Usage
 
Dim instance As GcTextBoxCellType
Dim value As TabCharMode
 
instance.AcceptsTabChar = value
 
value = instance.AcceptsTabChar
public TabCharMode AcceptsTabChar {get; set;}

Property Value

A TabCharMode enumeration that indicates which mode the Tab characters use when copying, cutting, and pasting a string.
The default is TabCharMode.NoControl.
Exceptions
ExceptionDescription
The value is not a valid TabCharMode item.
Remarks
This property only takes effect when the cell is in edit mode.
Example
This example uses the AcceptsTabChar property.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
datecell.AcceptsCrLf = GrapeCity.Win.Spread.InputMan.CellType.CrLfMode.Cut;
fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;

GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.AcceptsCrLf = GrapeCity.Win.Spread.InputMan.CellType.CrLfMode.Cut;
textcell.AcceptsTabChar = GrapeCity.Win.Spread.InputMan.CellType.TabCharMode.NoControl;
textcell.AllowSpace = GrapeCity.Win.Spread.InputMan.CellType.AllowSpace.Both;
fpSpread1.Sheets[0].Cells[1, 1].CellType = textcell;
Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
datecell.AcceptsCrLf = GrapeCity.Win.Spread.InputMan.CellType.CrLfMode.Cut
fpSpread1.Sheets(0).Cells(0, 0).CellType = datecell

Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.AcceptsCrLf = GrapeCity.Win.Spread.InputMan.CellType.CrLfMode.Cut
textcell.AcceptsTabChar = GrapeCity.Win.Spread.InputMan.CellType.TabCharMode.NoControl
textcell.AllowSpace = GrapeCity.Win.Spread.InputMan.CellType.AllowSpace.Both
fpSpread1.Sheets(0).Cells(1, 1).CellType = textcell
See Also

Reference

GcTextBoxCellType Class
GcTextBoxCellType Members