Spread Windows Forms 12.0 Product Documentation
DateDefault Property (SpreadMonthCalendar)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > SpreadMonthCalendar Class : DateDefault Property
Gets or sets a default value.
Syntax
'Declaration
 
Public Property DateDefault As Date
'Usage
 
Dim instance As SpreadMonthCalendar
Dim value As Date
 
instance.DateDefault = value
 
value = instance.DateDefault
public DateTime DateDefault {get; set;}
Example
This example sets the default date in the calendar.
//Press F4 on the cell to see the calendar
FarPoint.Win.Spread.CellType.DateTimeCellType dtest = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dtest.SimpleEdit = true;
FarPoint.Win.Spread.CellType.SpreadMonthCalendar calendar = new FarPoint.Win.Spread.CellType.SpreadMonthCalendar();
calendar.CancelText = "C";
calendar.OkText = "O.K.";
calendar.DateDefault = System.DateTime.Now;
dtest.SubEditor = calendar;
fpSpread1.Sheets[0].Cells[0, 0].CellType = dtest;
'Press F4 on the cell to see the calendar
Dim dtest As New FarPoint.Win.Spread.CellType.DateTimeCellType()
dtest.SimpleEdit = True
Dim calendar As New FarPoint.Win.Spread.CellType.SpreadMonthCalendar()
calendar.CancelText = "C"
calendar.OkText = "O.K."
calendar.DateDefault = System.DateTime.Now
dtest.SubEditor = calendar
FpSpread1.Sheets(0).Cells(0, 0).CellType = dtest
See Also

Reference

SpreadMonthCalendar Class
SpreadMonthCalendar Members