Spread Windows Forms 6.0 Product Documentation
Calendar Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > DateTimeCellType Class : Calendar Property


Glossary Item Box

Gets or sets the calendar for formatting date values.

Syntax

Visual Basic (Declaration) 
Public Property Calendar As Calendar
Visual Basic (Usage)Copy Code
Dim instance As DateTimeCellType
Dim value As Calendar
 
instance.Calendar = value
 
value = instance.Calendar
C# 
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.
C#Copy Code
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;
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.