Spread Windows Forms 13.0 Product Documentation
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcCharMaskCellType Class / AcceptsCrLf Property
Example


In This Topic
    AcceptsCrLf Property (GcCharMaskCellType)
    In This Topic
    Gets or sets how to process the CrLf characters when copying, cutting, or pasting a string.
    Syntax
    'Declaration
     
    Public Property AcceptsCrLf As CrLfMode
    'Usage
     
    Dim instance As GcCharMaskCellType
    Dim value As CrLfMode
     
    instance.AcceptsCrLf = value
     
    value = instance.AcceptsCrLf
    public CrLfMode AcceptsCrLf {get; set;}

    Property Value

    A CrLfMode enumeration indicates which mode the CrLf characters use when copying, cutting, or 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 GcCharMask to be the same as the standard TextBox when copying, cutting, or pasting a string.
    Example
    This example creates a GcCharMask cell.
    GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType gc = new GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType();
    gc.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.CtrlArrows;
    gc.AcceptsCrLf = GrapeCity.Win.Spread.InputMan.CellType.CrLfMode.Filter;
    gc.AutoConvert = false;
    gc.AllowSpace = GrapeCity.Win.Spread.InputMan.CellType.AllowSpace.Wide;
    
    gc.CharBoxes.AddRange(GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfoCollection.Number1);
    gc.CharBoxSpacing = 2;
    gc.ClipContent = GrapeCity.Win.Spread.InputMan.CellType.ClipContent.ExcludeLiterals;
    
    gc.ExitOnLastChar = false;
    gc.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.FirstInputPosition;
    gc.FormatString = "a";
    gc.InputDirection = GrapeCity.Win.Spread.InputMan.CellType.CharMaskInputDirection.RightToLeft;
    gc.PasswordChar = '#';
    
    gc.PaintByControl = true;
    gc.RecommendedValue = "aaaaaaaaaa";
    gc.ShowRecommendedValue = true;
    gc.UseSystemPasswordChar = true;
    gc.UseSpreadDropDownButtonRender = true;
    fpSpread1.ActiveSheet.Cells[0, 0].CellType = gc;
    Dim GC As New GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType()
    GC.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.CtrlArrows
    GC.AcceptsCrLf = GrapeCity.Win.Spread.InputMan.CellType.CrLfMode.Filter
    GC.AutoConvert = False
    GC.AllowSpace = GrapeCity.Win.Spread.InputMan.CellType.AllowSpace.Wide
    
    GC.CharBoxes.AddRange(GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfoCollection.Number1)
    GC.CharBoxSpacing = 2
    GC.ClipContent = GrapeCity.Win.Spread.InputMan.CellType.ClipContent.ExcludeLiterals
    
    GC.ExitOnLastChar = False
    GC.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.FirstInputPosition
    GC.FormatString = "a"
    GC.InputDirection = GrapeCity.Win.Spread.InputMan.CellType.CharMaskInputDirection.RightToLeft
    GC.PasswordChar = "#"
    
    GC.PaintByControl = True
    GC.RecommendedValue = "aaaaaaaaaa"
    GC.ShowRecommendedValue = True
    GC.UseSystemPasswordChar = True
    GC.UseSpreadDropDownButtonRender = True
    FpSpread1.ActiveSheet.Cells(0, 0).CellType = GC
    See Also