Spread Windows Forms 12.0 Product Documentation
AcceptsReturn Property (GeneralEditor)

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > GeneralEditor Class : AcceptsReturn Property
Gets or sets whether a return is accepted.
Public Property AcceptsReturn As Boolean
Dim instance As GeneralEditor
Dim value As Boolean
instance.AcceptsReturn = value
value = instance.AcceptsReturn
public bool AcceptsReturn {get; set;}

Property Value

Boolean: true to accept a keyboard return; false otherwise
This example uses the general editor to modify the cells appearance and behavior in edit mode.
FarPoint.Win.Spread.CellType.GeneralEditor ge = (FarPoint.Win.Spread.CellType.GeneralEditor)fpSpread1.EditingControl; 
ge.BorderStyle = BorderStyle.Fixed3D; 
ge.MarginLeft = 50;
ge.AcceptsReturn = false;
Dim ge As FarPoint.Win.Spread.CellType.GeneralEditor = CType(FpSpread1.EditingControl, FarPoint.Win.Spread.CellType.GeneralEditor)
ge.BorderStyle = BorderStyle.Fixed3D
ge.MarginLeft = 50
ge.AcceptsReturn = False
See Also


GeneralEditor Class
GeneralEditor Members