Spread Windows Forms 12.0 Product Documentation
WrapMode Property
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcTextBoxCellType Class : WrapMode Property
Gets or sets the wrap rule when the GcTextBox control is multiline.
Syntax
'Declaration
 
Public Property WrapMode As WrapMode
'Usage
 
Dim instance As GcTextBoxCellType
Dim value As WrapMode
 
instance.WrapMode = value
 
value = instance.WrapMode
public WrapMode WrapMode {get; set;}

Property Value

A GcTextBox.WrapMode enumeration that indicates the rule for wrapping the text.
The default is WrapMode.WordWrap.
Remarks
The WrapMode property takes effect for text wrap behaviors. The WrapMode.WordWrap value means wrap the text by word. The WrapMode.CharWrap value means wrap the text by character. This property only takes effect when MultiLine is true.
Example
This example uses the WrapMode property.
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.WrapMode = GrapeCity.Win.Spread.InputMan.CellType.WrapMode.WordWrap;
textcell.Multiline = true;
fpSpread1.Sheets[0].Cells[0, 0].CellType = textcell;
Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.WrapMode = GrapeCity.Win.Spread.InputMan.CellType.WrapMode.WordWrap
textcell.Multiline = True
fpSpread1.Sheets(0).Cells(0, 0).CellType = textcell
See Also

Reference

GcTextBoxCellType Class
GcTextBoxCellType Members