Spread for ASP.NET 11 Product Documentation
ForeColor Property (CalendarDropDownStyleInfo)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CalendarDropDownStyleInfo Class : ForeColor Property
Gets or sets fore color for the CalendarDropDownControl.
Syntax
'Declaration
 
Public Property ForeColor As Color
'Usage
 
Dim instance As CalendarDropDownStyleInfo
Dim value As Color
 
instance.ForeColor = value
 
value = instance.ForeColor
public Color ForeColor {get; set;}
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
See Also

Reference

CalendarDropDownStyleInfo Class
CalendarDropDownStyleInfo Members