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


In This Topic
    FormatString Property (GcTextBoxCellType)
    In This Topic
    Gets or sets the input format to use in the control.
    Syntax
    'Declaration
     
    Public Property FormatString As String
    'Usage
     
    Dim instance As GcTextBoxCellType
    Dim value As String
     
    instance.FormatString = value
     
    value = instance.FormatString
    public string FormatString {get; set;}

    Property Value

    The string that is used to control how text is entered.
    The default is System.String.Empty.
    Remarks
    This property specifies what kind of characters and symbols can be entered.
    Example
    This example uses the FormatString property.
    GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType inputcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
    //Symbols
    inputcell.FormatString = "@";
    fpSpread1.Sheets[0].Cells[0, 0].CellType = inputcell;
    Dim inputcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
    'Symbols
    inputcell.FormatString = "@"
    fpSpread1.Sheets(0).Cells(0, 0).CellType = inputcell
    See Also