Gets or sets the maximum value.
            
            
            
Syntax
| Visual Basic (Declaration) |   | 
|---|
Public Property MaximumValue As Date  | 
 
| Visual Basic (Usage) |  Copy Code | 
|---|
Dim instance As DateTimeCellType
Dim value As Date
 
instance.MaximumValue = value
 
value = instance.MaximumValue  | 
 
| C# |   | 
|---|
public DateTime MaximumValue {get; set;} | 
 
            
            
            Property Value
DateTime object containing the maximum date-time value
 
            
			
			
            
            
            
            
Example
| C# |  Copy Code | 
|---|
FarPoint.Web.Spread.DateTimeCellType dt = new FarPoint.Web.Spread.DateTimeCellType();
System.Globalization.DateTimeFormatInfo dtf = new System.Globalization.DateTimeFormatInfo();
dtf.LongDatePattern = "D";
dtf.ShortDatePattern = "M/d/yyyy";
dt.DateTimeFormat = dtf;
dt.MaximumValue = new Date(2020, 12, 31);
dt.MinimumValue = new Date(1950, 1, 1);
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = dt;
FpSpread1.ActiveSheetView.Cells[0, 0].Value = DateTime.Now;
  | 
 
| Visual Basic |  Copy Code | 
|---|
Dim dt As New FarPoint.Web.Spread.DateTimeCellType
Dim dtf As New System.Globalization.DateTimeFormatInfo
dtf.LongDatePattern = "D"
dtf.ShortDatePattern = "M/d/yyyy"
dt.DateTimeFormat = dtf
dt.MaximumValue = New Date(2020, 12, 31)
dt.MinimumValue = New Date(1950, 1, 1)
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = dt
FpSpread1.ActiveSheetView.Cells(0, 0).Value = DateTime.Now  | 
 
 
            
            
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
 
            
            
See Also