Spread Windows Forms 13.0 Product Documentation
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcNumberCellType Class / AlternateText Property

In This Topic
    AlternateText Property (GcNumberCellType)
    In This Topic
    Gets the alternate text of the GcNumberCellType control.
    Public ReadOnly Property AlternateText As NumberAlternateTextInfo
    Dim instance As GcNumberCellType
    Dim value As NumberAlternateTextInfo
    value = instance.AlternateText
    public NumberAlternateTextInfo AlternateText {get;}

    Property Value

    A NumberAlternateText value that indicates the NumberAlternateText.
    This property displays alternate text when the value of the control is Zero or Null in edit mode or display mode.
    This example changes 0 to Zero. Type 0 in cell (1,1) and then click on a different cell to see the change.
    GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
    ncell1.DropDownCalculator.BackColor = Color.Bisque;
    ncell1.DropDownCalculator.BorderStyle = BorderStyle.FixedSingle;
    ncell1.AlternateText.DisplayZero.Text = "Zero";
    fpSpread1.ActiveSheet.Cells[1, 1].CellType = ncell1;
    Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
    ncell1.DropDownCalculator.BackColor = Color.Bisque
    ncell1.DropDownCalculator.BorderStyle = BorderStyle.FixedSingle
    ncell1.AlternateText.DisplayZero.Text = "Zero"
    fpSpread1.ActiveSheet.Cells(1, 1).CellType = ncell1
    See Also