Spread Windows Forms 12.0 Product Documentation
RecommendedValue Property (GcNumberCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcNumberCellType Class : RecommendedValue Property
Gets or sets the recommended value.
Syntax
'Declaration
 
Public Property RecommendedValue As Decimal
'Usage
 
Dim instance As GcNumberCellType
Dim value As Decimal
 
instance.RecommendedValue = value
 
value = instance.RecommendedValue
public decimal RecommendedValue {get; set;}

Property Value

A System.String value that indicates the recommended value.
The default is System.Decimal.Zero.
Exceptions
ExceptionDescription
Occurs when an invalid value that does not match the current pattern is set with the RecommendedValue property.
Remarks
The RecommendedValue property provides a hint for the user that is shown before the value is fully entered. When a value is being typed, pressing a special shortcut key or key combination accepts the recommended value.
Example
This example sets the RecommendedValue property.
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
//Press enter or double-click on the cell to see the recommended value
ncell1.RecommendedValue = 5;
ncell1.ShowRecommendedValue = true;
fpSpread1.Sheets[0].Cells[1, 1].CellType = ncell1;
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
'Press enter or double-click on the cell to see the recommended value
ncell1.RecommendedValue = 5
ncell1.ShowRecommendedValue = True
fpSpread1.Sheets(0).Cells(1, 1).CellType = ncell1
See Also

Reference

GcNumberCellType Class
GcNumberCellType Members