PowerTools SPREAD for Windows Forms 8.0J
CalendarMonthHeaderDock プロパティ


日付時刻型セルのポップアップ カレンダーの月ヘッダをドッキングする方法を取得または設定します。
構文
'Declaration
 
Public Property CalendarMonthHeaderDock As FarPoint.PluginCalendar.WinForms.HeaderDock
'使用法
 
Dim instance As DateTimeCellType
Dim value As FarPoint.PluginCalendar.WinForms.HeaderDock
 
instance.CalendarMonthHeaderDock = value
 
value = instance.CalendarMonthHeaderDock
public FarPoint.PluginCalendar.WinForms.HeaderDock CalendarMonthHeaderDock {get; set;}
次のサンプル コードは、日付時刻型セルのポップアップ カレンダーの外観プロパティを設定します。
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;
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
参照

DateTimeCellType クラス
DateTimeCellType メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.