FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > GeneralCellType Class : IsDateFormat Property |
'Declaration Public Overridable Property IsDateFormat As Boolean
'Usage Dim instance As GeneralCellType Dim value As Boolean instance.IsDateFormat = value value = instance.IsDateFormat
public virtual bool IsDateFormat {get; set;}
System.Globalization.DateTimeFormatInfo dtf = new System.Globalization.DateTimeFormatInfo(); dtf.LongDatePattern = "D"; dtf.ShortDatePattern = "M/d/yyyy"; FarPoint.Web.Spread.GeneralCellType g = new FarPoint.Web.Spread.GeneralCellType(); g.DateTimeFormat = dtf; g.FormatString = dtf.ShortDatePattern g.IsDateFormat = true; FpSpread1.ActiveSheetView.Cells[0, 0].CellType = g; FpSpread1.ActiveSheetView.Cells[0, 0].Value = DateTime.Now;
Dim dtf As New System.Globalization.DateTimeFormatInfo Dim b As Boolean dtf.LongDatePattern = "D" dtf.ShortDatePattern = "M/d/yyyy" Dim g As New FarPoint.Web.Spread.GeneralCellType g.DateTimeFormat = dtf g.FormatString = dtf.ShortDatePattern g.IsDateFormat = True FpSpread1.ActiveSheetView.Cells(0, 0).CellType = g FpSpread1.ActiveSheetView.Cells(0, 0).Value = DateTime.Now
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6