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


Gets or sets the behavior when the new input value is outside of MinValue and MaxValue.
Syntax
'Declaration
 
Public Property MaxMinBehavior As MaxMinBehavior
'Usage
 
Dim instance As GcNumberCellType
Dim value As MaxMinBehavior
 
instance.MaxMinBehavior = value
 
value = instance.MaxMinBehavior
public MaxMinBehavior MaxMinBehavior {get; set;}

Property Value

A MaxMinBehavior enumeration value that indicates the behavior when the new input value is outside of MinValue and MaxValue.
The default is MaxMinBehavior.AdjustToMaxMin.
Example
This example adjusts values outside the range to the miniumum 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
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.