Spread Windows Forms 11.0 Product Documentation
Calendar Property (DateTimeCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > DateTimeCellType Class : Calendar Property
Gets or sets the calendar for formatting date values.
Syntax
'Declaration
 
Public Property Calendar As Calendar
'Usage
 
Dim instance As DateTimeCellType
Dim value As Calendar
 
instance.Calendar = value
 
value = instance.Calendar
public Calendar Calendar {get; set;}

Property Value

Calendar object containing the calendar to use for formatting date values
Example
This example changes the culture info to use a Korean calendar.
Application.CurrentCulture = new System.Globalization.CultureInfo("ko-KR");

FarPoint.Win.Spread.CellType.DateTimeCellType dt = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dt.Calendar = new System.Globalization.KoreanCalendar();
fpSpread1.ActiveSheet.Cells[0, 0].CellType = dt;
Application.CurrentCulture = New System.Globalization.CultureInfo("ko-KR")

Dim dt As New FarPoint.Win.Spread.CellType.DateTimeCellType
dt.Calendar = New System.Globalization.KoreanCalendar
fpSpread1.ActiveSheet.Cells(0, 0).CellType = dt
See Also

Reference

DateTimeCellType Class
DateTimeCellType Members