FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.CellType 名前空間 > GeneralCellType クラス : DateTimeFormat プロパティ |
'Declaration Public Overridable Property DateTimeFormat As DateTimeFormatInfo
'使用法 Dim instance As GeneralCellType Dim value As DateTimeFormatInfo instance.DateTimeFormat = value value = instance.DateTimeFormat
public virtual DateTimeFormatInfo DateTimeFormat {get; set;}
FarPoint.Win.Spread.CellType.GeneralCellType genlcell = new FarPoint.Win.Spread.CellType.GeneralCellType();
System.Globalization.DateTimeFormatInfo dtinfo;
dtinfo = System.Globalization.DateTimeFormatInfo.CurrentInfo;
genlcell.DateTimeFormat = dtinfo;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = genlcell;
fpSpread1.ActiveSheet.Cells[0, 0].Value = DateTime.Now;
Dim genlcell As New FarPoint.Win.Spread.CellType.GeneralCellType() Dim dtinfo As New System.Globalization.DateTimeFormatInfo() genlcell.DateTimeFormat = dtinfo.CurrentInfo FpSpread1.ActiveSheet.Cells(0, 0).CellType = genlcell FpSpread1.ActiveSheet.Cells(0, 0).Value = DateTime.Now