Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / DateTimeCellType Class / DateDefault Property
Example


In This Topic
    DateDefault Property (DateTimeCellType)
    In This Topic
    Gets or sets the default date for the control.
    Syntax
    'Declaration
     
    Public Overridable Property DateDefault As Date
    'Usage
     
    Dim instance As DateTimeCellType
    Dim value As Date
     
    instance.DateDefault = value
     
    value = instance.DateDefault
    public virtual DateTime DateDefault {get; set;}

    Property Value

    DateTime object containing the default date
    Example
    This example sets the default date for the cell.
    FarPoint.Win.Spread.CellType.DateTimeCellType dt = new FarPoint.Win.Spread.CellType.DateTimeCellType(); 
    dt.DateDefault = System.DateTime.Now; 
    dt.TimeDefault = System.DateTime.Now; 
    dt.TwoDigitYearMax = 2000;
    FarPoint.Win.Spread.CellType.DateTimeCellType dt = new FarPoint.Win.Spread.CellType.DateTimeCellType(); 
    dt.DateDefault = System.DateTime.Now; 
    dt.TimeDefault = System.DateTime.Now; 
    dt.TwoDigitYearMax = 2000;
    See Also