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


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

GcNumberCellType Class
GcNumberCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.