Spread Windows Forms 11.0 Product Documentation
FirstMonthInView Property (DropDownCalendar)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > DropDownCalendar Class : FirstMonthInView Property
Gets or sets the first month in the drop-down calendar view.
Syntax
'Declaration
 
Public Property FirstMonthInView As Months
'Usage
 
Dim instance As DropDownCalendar
Dim value As Months
 
instance.FirstMonthInView = value
 
value = instance.FirstMonthInView
public Months FirstMonthInView {get; set;}

Property Value

A Months enumeration value that indicates the first month in the view.
The default is Months.Default.
Remarks
When CalendarType is MonthDay and 12 months are shown in the DropDownCalendar, this property specifies which month is shown first. If the value is not Months.Default, scrolling is year by year.
Example
This example specifies the first month in the calendar view.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.CalendarType = GrapeCity.Win.Spread.InputMan.CellType.CalendarType.MonthDay;
gcDateTimeCell1.DropDownCalendar.FirstMonthInView = GrapeCity.Win.Spread.InputMan.CellType.Months.October;
gcDateTimeCell1.DropDownCalendar.CalendarDimensions = new Size(3, 4);
gcDateTimeCell1.DropDownCalendar.InnerSpace = new System.Drawing.Size(5, 5);
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.CalendarType = GrapeCity.Win.Spread.InputMan.CellType.CalendarType.MonthDay
gcDateTimeCell1.DropDownCalendar.FirstMonthInView = GrapeCity.Win.Spread.InputMan.CellType.Months.October
gcDateTimeCell1.DropDownCalendar.CalendarDimensions = New Size(3, 4)
gcDateTimeCell1.DropDownCalendar.InnerSpace = New System.Drawing.Size(5, 5)
fpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
See Also

Reference

DropDownCalendar Class
DropDownCalendar Members