GrapeCity SPREAD for Windows Forms 12.0J
MinDate プロパティ (DropDownCalendar)


ドロップダウンカレンダーで選択可能な日付の最小値を取得または設定します。
構文
'Declaration
 
Public Property MinDate As Nullable(Of Date)
'使用法
 
Dim instance As DropDownCalendar
Dim value As Nullable(Of Date)
 
instance.MinDate = value
 
value = instance.MinDate
public Nullable<DateTime> MinDate {get; set;}

プロパティ値

カレンダーの最小日付を示す System.DateTime 値。
例外
例外説明
System.ArgumentNullException値がnull 参照 (Visual Basicでは Nothing)です。
System.ArgumentOutOfRangeException値が MaxDate を超えています。
解説
このプロパティは最小日付値を取得します。その値はMaxDateより小さい必要があります。
次のサンプルコードは、ドロップダウンカレンダーに表示できる最小日付を設定します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.MinDate = new System.DateTime(2010, 1, 1);
gcDateTimeCell1.DropDownCalendar.MaxDate = new System.DateTime(2100, 1, 1);
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.MinDate = New System.DateTime(2010, 1, 1)
gcDateTimeCell1.DropDownCalendar.MaxDate = New System.DateTime(2100, 1, 1)
FpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
参照

DropDownCalendar クラス
DropDownCalendar メンバ

 

 


Copyright © 2004 GrapeCity inc.