PowerTools SPREAD for Windows Forms 10.0J
MinimumTime プロパティ


ユーザー入力可能な時刻の最小値を取得または設定します。
構文
'Declaration
 
Public Property MinimumTime As TimeSpan
'使用法
 
Dim instance As DateTimeCellType
Dim value As TimeSpan
 
instance.MinimumTime = value
 
value = instance.MinimumTime
public TimeSpan MinimumTime {get; set;}

プロパティ値

入力可能な時刻の最小値を含むTimeSpanオブジェクト
例外
例外説明
System.ArgumentOutOfRangeException指定された値が範囲外です。有効な値は00:00:00〜23:59:59.9999999です。
次のサンプルコードは、最初のシートに日付時刻型セルを設定し、いくつかのプロパティを指定します。
FarPoint.Win.Spread.CellType.DateTimeCellType datecell = new FarPoint.Win.Spread.CellType.DateTimeCellType();
datecell.AMString = "a.m. (morning)";
datecell.PMString = "p.m. (evening)";
datecell.DateSeparator = " | ";
datecell.TimeSeparator = ":";
datecell.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.ShortDateWithTime;
datecell.MaximumDate = new System.DateTime(2010, 1, 1);
datecell.MinimumDate = new System.DateTime(1990, 12, 31);
datecell.MaximumTime = new System.TimeSpan(15, 59, 59);
datecell.MinimumTime = new System.TimeSpan(11, 0, 0);
datecell.SpinButton = true;
fpSpread1.Sheets[0].Cells[7,2].CellType = datecell;
fpSpread1.Sheets[0].Cells[7,2].Value = System.DateTime.Now;
Dim datecell As New FarPoint.Win.Spread.CellType.DateTimeCellType()
datecell.AMString = "a.m. (morning)"
datecell.PMString = "p.m. (evening)"
datecell.DateSeparator = " | "
datecell.TimeSeparator = ":"
datecell.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.ShortDateWithTime
datecell.MaximumDate = new System.DateTime(2010, 1, 1)
datecell.MinimumDate = new System.DateTime(1990, 12, 31)
datecell.MaximumTime = new System.TimeSpan(15, 59, 59)
datecell.MinimumTime = new System.TimeSpan(11, 0, 0)
datecell.SpinButton = True
fpSpread1.Sheets(0).Cells(7,2).CellType = datecell
fpSpread1.Sheets(0).Cells(7,2).Value = System.DateTime.Now
参照

DateTimeCellType クラス
DateTimeCellType メンバ

 

 


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