Spread Windows Forms 11.0 Product Documentation
AlternateText Property (GcNumberCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcNumberCellType Class : AlternateText Property
Gets the alternate text of the GcNumberCellType control.
Syntax
'Declaration
 
Public ReadOnly Property AlternateText As NumberAlternateTextInfo
'Usage
 
Dim instance As GcNumberCellType
Dim value As NumberAlternateTextInfo
 
value = instance.AlternateText
public NumberAlternateTextInfo AlternateText {get;}

Property Value

A NumberAlternateText value that indicates the NumberAlternateText.
Remarks
This property displays alternate text when the value of the control is Zero or Null in edit mode or display mode.
Example
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

Reference

GcNumberCellType Class
GcNumberCellType Members