Spread for ASP.NET 13 Product Documentation
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / DateTimeCellType Class / DateTimeCellType Constructor / DateTimeCellType Constructor(DateTime,DateTime)
Minimum value (earliest date and time)
Maximum value (latest date and time)
Example


In This Topic
    DateTimeCellType Constructor(DateTime,DateTime)
    In This Topic
    Creates a new date-time cell with the specified earliest and latest allowable dates and times.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal min As Date, _
       ByVal max As Date _
    )
    'Usage
     
    Dim min As Date
    Dim max As Date
     
    Dim instance As New DateTimeCellType(min, max)
    public DateTimeCellType( 
       DateTime min,
       DateTime max
    )

    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.
    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;
    
    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
    See Also