Creates a new date-time cell with the specified earliest and latest allowable dates and times.
Syntax
Visual Basic (Declaration) | |
---|
Public Function New( _
ByVal min As Date, _
ByVal max As Date _
) |
Parameters
- min
- Minimum value (earliest date and time)
- max
- Maximum value (latest date and time)
Example
This example creates a date-time cell with the specified earliest and latest allowable dates and times.
C# | Copy Code |
---|
DateTime min = new DateTime(2000, 1, 1);
DateTime max = new DateTime(2010, 12, 31);
FarPoint.Web.Spread.DateTimeCellType dt = new FarPoint.Web.Spread.DateTimeCellType(min, max);
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = dt;
|
Visual Basic | Copy Code |
---|
Dim min As New DateTime(2000, 1, 1)
Dim max As New DateTime(2010, 12, 31)
Dim dt As New FarPoint.Web.Spread.DateTimeCellType(min, max)
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = dt |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also