Spread ASP.NET 6.0 Product Documentation
DateTimeCellType Constructor(DateTime,DateTime,String)
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DateTimeCellType Class > DateTimeCellType Constructor : DateTimeCellType Constructor(DateTime,DateTime,String)


min
Minimum value (earliest date and time)
max
Maximum value (latest date and time)
errorMessage
Message (as string) to display if the input value is not valid

Glossary Item Box

Creates a new date-time cell with the specified earliest and latest allowable dates and the specified error message.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal min As Date, _
   ByVal max As Date, _
   ByVal errorMessage As String _
)
Visual Basic (Usage)Copy Code
Dim min As Date
Dim max As Date
Dim errorMessage As String
 
Dim instance As New DateTimeCellType(min, max, errorMessage)
C# 
public DateTimeCellType( 
   DateTime min,
   DateTime max,
   string errorMessage
)

Parameters

min
Minimum value (earliest date and time)
max
Maximum value (latest date and time)
errorMessage
Message (as string) to display if the input value is not valid

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, "Need a date!!");
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = dt;
Visual BasicCopy 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, "Need a date!!")
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = dt

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

© 2002-2012 GrapeCity, Inc. All Rights Reserved.