FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.CellType 名前空間 > DateTimeCellType クラス : MaximumTime プロパティ |
'Declaration Public Property MaximumTime As TimeSpan
'使用法 Dim instance As DateTimeCellType Dim value As TimeSpan instance.MaximumTime = value value = instance.MaximumTime
public TimeSpan MaximumTime {get; set;}
例外 | 説明 |
---|---|
System.ArgumentOutOfRangeException | 指定された値が範囲外です。00:00:00から23:59:59までの値を指定する必要があります。 |
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