Spread Windows Forms 12.0 Product Documentation
MaxMinBehavior Property (GcDateTimeCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcDateTimeCellType Class : MaxMinBehavior Property
Gets or sets the behavior when the new input value is outside of GcDateTime.MinDate and GcDateTime.MaxDate.
Syntax
'Declaration
 
Public Property MaxMinBehavior As MaxMinBehavior
'Usage
 
Dim instance As GcDateTimeCellType
Dim value As MaxMinBehavior
 
instance.MaxMinBehavior = value
 
value = instance.MaxMinBehavior
public MaxMinBehavior MaxMinBehavior {get; set;}

Property Value

A GcDateTime.MaxMinBehavior enumeration value that indicates the behavior when the new input value is outside of GcDateTime.MinDate and GcDateTime.MaxDate.
The default is MaxMinBehavior.AdjustToMaxMin.
Exceptions
ExceptionDescription
The value is not a valid GcDateTime.MaxMinBehavior item.
Example
This example uses the MaxMinBehavior property.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
datecell.MaxDate = new System.DateTime(9999, 12, 31);
datecell.MinDate = DateTime.Now;
datecell.MaxMinBehavior = GrapeCity.Win.Spread.InputMan.CellType.MaxMinBehavior.Clear;
fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;
Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
datecell.MaxDate = new System.DateTime(9999, 12, 31)
datecell.MinDate = DateTime.Now
datecell.MaxMinBehavior = GrapeCity.Win.Spread.InputMan.CellType.MaxMinBehavior.Clear
fpSpread1.Sheets(0).Cells(0, 0).CellType = datecell
See Also

Reference

GcDateTimeCellType Class
GcDateTimeCellType Members