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


Glossary Item Box

Gets or sets the height of the month header of the pop-up calendar in the date-time cell.

Syntax

Visual Basic (Declaration) 
Public Property CalendarMonthHeaderHeight As Integer
Visual Basic (Usage)Copy Code
Dim instance As DateTimeCellType
Dim value As Integer
 
instance.CalendarMonthHeaderHeight = value
 
value = instance.CalendarMonthHeaderHeight
C# 
public int CalendarMonthHeaderHeight {get; set;}

Example

This example sets the appearance properties of the pop-up calendar in a date-time cell.
C#Copy Code
FarPoint.Win.Spread.CellType.DateTimeCellType dt = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dt.CalendarDayBackColor = Color.Aqua; 
dt.CalendarDayFont = new Font("MS Sans Serif", 6);
dt.CalendarDayForeColor = Color.Blue;
dt.CalendarMonthBackColor = Color.Coral
dt.CalendarMonthFont = new Font("MS Sans Serif", 12);
dt.CalendarMonthForeColor = Color.Bisque;
dt.CalendarMonthHeaderDock = PluginCalendar.WinForms.HeaderDock.Right;
dt.CalendarMonthHeaderHeight = 10;
dt.CalendarMonthHeaderStyle = PluginCalendar.WinForms.HeaderStyle.Scroll;
dt.CalendarShowSurroundingDays = true;
dt.CalendarSingleLineHeader = PluginCalendar.WinForms.SingleLineHeader.MonthFirstBottom;
dt.CalendarSurroundingDaysColor = Color.AliceBlue;
dt.CalendarWeekdayBackColor = Color.Beige;
dt.CalendarWeekdayFont = new Font("MS Sans Serif", 12);
dt.CalendarWeekdayForeColor = Color.BlueViolet;
dt.CalendarWeekdayHeaderDock = PluginCalendar.WinForms.WeekdayDock.Top;
dt.CalendarWeekdayHeaderHeight = 20;
dt.CalendarYearBackColor = Color.BlanchedAlmond;
dt.CalendarYearFont = new Font("MS Sans Serif", 12);
dt.CalendarYearForeColor = Color.CadetBlue;
dt.CalendarYearHeaderDock = PluginCalendar.WinForms.HeaderDock.Left;
dt.CalendarYearHeaderHeight = 15;
dt.CalendarYearHeaderStyle = PluginCalendar.WinForms.HeaderStyle.Scroll;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = dt;
fpSpread1.ActiveSheet.Cells[0, 0].Value = Now;
Visual BasicCopy Code
Dim dt As New FarPoint.Win.Spread.CellType.DateTimeCellType
dt.CalendarDayBackColor = Color.Aqua
dt.CalendarDayFont = New Font("MS Sans Serif", 6)
dt.CalendarDayForeColor = Color.Blue
dt.CalendarMonthBackColor = Color.Coral
dt.CalendarMonthFont = New Font("MS Sans Serif", 12)
dt.CalendarMonthForeColor = Color.Bisque
dt.CalendarMonthHeaderDock = PluginCalendar.WinForms.HeaderDock.Right
dt.CalendarMonthHeaderHeight = 10
dt.CalendarMonthHeaderStyle = PluginCalendar.WinForms.HeaderStyle.Scroll
dt.CalendarShowSurroundingDays = True
dt.CalendarSingleLineHeader = PluginCalendar.WinForms.SingleLineHeader.MonthFirstBottom
dt.CalendarSurroundingDaysColor = Color.AliceBlue
dt.CalendarWeekdayBackColor = Color.Beige
dt.CalendarWeekdayFont = New Font("MS Sans Serif", 12)
dt.CalendarWeekdayForeColor = Color.BlueViolet
dt.CalendarWeekdayHeaderDock = PluginCalendar.WinForms.WeekdayDock.Top
dt.CalendarWeekdayHeaderHeight = 20
dt.CalendarYearBackColor = Color.BlanchedAlmond
dt.CalendarYearFont = New Font("MS Sans Serif", 12)
dt.CalendarYearForeColor = Color.CadetBlue
dt.CalendarYearHeaderDock = PluginCalendar.WinForms.HeaderDock.Left
dt.CalendarYearHeaderHeight = 15 
dt.CalendarYearHeaderStyle = PluginCalendar.WinForms.HeaderStyle.Scroll
FpSpread1.ActiveSheet.Cells(0, 0).CellType = dt
FpSpread1.ActiveSheet.Cells(0, 0).Value = Now

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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