Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcTextBox Class / AcceptsCrLf Property


In This Topic
    AcceptsCrLf Property
    In This Topic
    Gets or sets a value indicating how to process the CrLf chars when pasting string. This is a dependency property.
    Syntax
    'Declaration
     
    Public Property AcceptsCrLf As CrLfMode
    'Usage
     
    Dim instance As GcTextBox
    Dim value As CrLfMode
     
    instance.AcceptsCrLf = value
     
    value = instance.AcceptsCrLf
    public CrLfMode AcceptsCrLf {get; set;}

    Property Value

    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.
    Exceptions
    ExceptionDescription
    Value is not defined in GrapeCity.Windows.InputMan.CrLfMode enumeration.
    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.
    See Also