PowerTools SPREAD for ASP.NET 8.0J
DateTimeCellType コンストラクタ(DateTime,DateTime,String)

最小値(最も早い日付と時刻)
最大値(最も遅い日付と時刻)
入力値が有効でない場合に表示するメッセージ(文字列)
設定可能な日時の範囲とエラー メッセージを指定して、新しい日付型セルを作成します。
構文
'Declaration
 
Public Function New( _
   ByVal min As Date, _
   ByVal max As Date, _
   ByVal errorMessage As String _
)
public DateTimeCellType( 
   DateTime min,
   DateTime max,
   string errorMessage
)

パラメータ

min
最小値(最も早い日付と時刻)
max
最大値(最も遅い日付と時刻)
errorMessage
入力値が有効でない場合に表示するメッセージ(文字列)
この例では、日付と時刻の入力可能範囲を指定して、日付型セルを作成します。
DateTime min = new DateTime(2000, 1, 1);
DateTime max = new DateTime(2010, 12, 31);
FarPoint.Web.Spread.DateTimeCellType dt = new FarPoint.Web.Spread.DateTimeCellType(min, max, "Need a date!!");
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = dt;
Dim min As New DateTime(2000, 1, 1)
Dim max As New DateTime(2010, 12, 31)
Dim dt As New FarPoint.Web.Spread.DateTimeCellType(min, max, "Need a date!!")
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = dt
参照

DateTimeCellType クラス
DateTimeCellType メンバ
オーバーロード一覧
ErrorMessage プロパティ

 

 


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