[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.AcceptsCrLf

AcceptsCrLf Property

AcceptsCrLf

Gets or sets a value indicating how to process the CrLf chars when pasting string. This is a dependency property.

Declaration
public CrLfMode AcceptsCrLf { get; set; }
Public Property AcceptsCrLf As CrLfMode
Property Value
Type Description
CrLfMode

A GrapeCity.Windows.InputMan.CrLfMode enumeration indicates how the CrLf chars will be processed when paste string into GcTextBox.
The default is GrapeCity.Windows.InputMan.CrLfMode.Cut.

Remarks

This property only works when Multiline is false. When setting AcceptsCrLf to GrapeCity.Windows.InputMan.CrLfMode.Cut, only the substring before the first CrLf char will be kept when pasting; when setting AcceptsCrLf to GrapeCity.Windows.InputMan.CrLfMode.Filter, the CrLf chars in the source string will be removed.

Exceptions
Type Condition
ArgumentException

Value is not defined in GrapeCity.Windows.InputMan.CrLfMode enumeration.