Spread for ASP.NET 10 Product Documentation
CalendarType Enumeration
Example Example 


The enum represents calendar type.
Syntax
'Declaration
 
Public Enum CalendarType 
   Inherits System.Enum
'Usage
 
Dim instance As CalendarType
public enum CalendarType : System.Enum 
Members
MemberDescription
MonthDayMonth-Day
YearMonthYear-Month
Example
This example sets properties for the calendar.
FarPoint.Web.Spread.DateTimeCellType datecell = new FarPoint.Web.Spread.DateTimeCellType();
datecell.ShowPopupButton = true;
datecell.DropDownControlStyleInfo.CalendarType = FarPoint.Web.Spread.CalendarType.MonthDay;
datecell.DropDownControlStyleInfo.HeaderBackColor = Color.Bisque;
datecell.DropDownControlStyleInfo.HeaderForeColor = Color.Black;
datecell.DropDownControlStyleInfo.ShowToday = true;
datecell.DropDownControlStyleInfo.BackColor = Color.LightGray;
datecell.DropDownControlStyleInfo.ForeColor = Color.Black;
datecell.DropDownControlStyleInfo.TodayMarkColor = Color.Tomato;
datecell.DropDownControlStyleInfo.Font = new System.Drawing.Font("Calibri", 14);
FpSpread1.ActiveSheetView.Columns[1].Width = 175;
FpSpread1.ActiveSheetView.Cells[1, 1].CellType = datecell;
Dim datecell As New FarPoint.Web.Spread.DateTimeCellType()
datecell.ShowPopupButton = True
datecell.DropDownControlStyleInfo.CalendarType = FarPoint.Web.Spread.CalendarType.MonthDay
datecell.DropDownControlStyleInfo.HeaderBackColor = Color.Bisque
datecell.DropDownControlStyleInfo.HeaderForeColor = Color.Black
datecell.DropDownControlStyleInfo.ShowToday = True
datecell.DropDownControlStyleInfo.BackColor = Color.LightGray
datecell.DropDownControlStyleInfo.ForeColor = Color.Black
datecell.DropDownControlStyleInfo.TodayMarkColor = Color.Tomato
datecell.DropDownControlStyleInfo.Font = New System.Drawing.Font("Calibri", 14)
FpSpread1.ActiveSheetView.Columns(1).Width = 175
FpSpread1.ActiveSheetView.Cells(1, 1).CellType = datecell
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Web.Spread.CalendarType

Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

FarPoint.Web.Spread Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.