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


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

Property Value

A System.Decimal value that indicates the maximum allowable value.
Exceptions
ExceptionDescription
The value is less than MinValue or greater than the default value.
Example
This example adjusts values outside the range to the minimum or maximum value.
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType inputcell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
inputcell1.MaxValue = 50;
inputcell1.MinValue = 0;
inputcell1.MaxMinBehavior = GrapeCity.Win.Spread.InputMan.CellType.MaxMinBehavior.AdjustToMaxMin;
fpSpread1.Sheets[0].Cells[1, 1].CellType = inputcell1;
Dim inputcell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
inputcell1.MaxValue = 50
inputcell1.MinValue = 0
inputcell1.MaxMinBehavior = GrapeCity.Win.Spread.InputMan.CellType.MaxMinBehavior.AdjustToMaxMin
fpSpread1.Sheets(0).Cells(1, 1).CellType = inputcell1
See Also

Reference

GcNumberCellType Class
GcNumberCellType Members