MESCIUS SPREAD for Windows Forms 15.0J
DateDefault プロパティ (SpreadMonthCalendar)
使用例 

デフォルト値を取得または設定します。
構文
'宣言
 
Public Property DateDefault As Date
public DateTime DateDefault {get; set;}
使用例
次のサンプルコードは、カレンダーのデフォルトの日付を設定します。
//Press F4 on the cell to see the calendar
FarPoint.Win.Spread.CellType.DateTimeCellType dtest = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dtest.SimpleEdit = true;
FarPoint.Win.Spread.CellType.SpreadMonthCalendar calendar = new FarPoint.Win.Spread.CellType.SpreadMonthCalendar();
calendar.CancelText = "C";
calendar.OkText = "O.K.";
calendar.DateDefault = System.DateTime.Now;
dtest.SubEditor = calendar;
fpSpread1.Sheets[0].Cells[0, 0].CellType = dtest;
'Press F4 on the cell to see the calendar
Dim dtest As New FarPoint.Win.Spread.CellType.DateTimeCellType()
dtest.SimpleEdit = True
Dim calendar As New FarPoint.Win.Spread.CellType.SpreadMonthCalendar()
calendar.CancelText = "C"
calendar.OkText = "O.K."
calendar.DateDefault = System.DateTime.Now
dtest.SubEditor = calendar
FpSpread1.Sheets(0).Cells(0, 0).CellType = dtest
参照

SpreadMonthCalendar クラス
SpreadMonthCalendar メンバ

 

 


© MESCIUS inc. All rights reserved.