Spread Windows Forms 11.0 Product Documentation
AcceptsCrLf Property (GcTextBoxCellType)
Example 


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

Property Value

A CrLfMode enumeration that indicates which mode the CrLf characters use when copying, cutting, and pasting a string.
The default is CrLfMode.NoControl.
Exceptions
ExceptionDescription
The value is not a valid CrLfMode item.
Remarks
The CrLf.Cut setting causes the GcTextBox to be similar to the standard TextBox when copying, cutting, and pasting a string.
Example
This example uses the AcceptsCrLf property.
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;
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
See Also

Reference

GcTextBoxCellType Class
GcTextBoxCellType Members