FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > GeneralCellType Class : DateTimeFormat Property |
'Declaration Public Overridable Property DateTimeFormat As DateTimeFormatInfo
'Usage Dim instance As GeneralCellType Dim value As DateTimeFormatInfo instance.DateTimeFormat = value value = instance.DateTimeFormat
public virtual DateTimeFormatInfo DateTimeFormat {get; set;}
<style>.CssStyle1 { FONT: 700 12pt verdana; COLOR: yellow } </style> 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.CssClass = "CssStyle1"; g.DateTimeFormat = dtf; FpSpread1.ActiveSheetView.Cells[0, 0].CellType = g;
<style>.CssStyle1 { FONT: 700 12pt verdana; COLOR: yellow } </style> Dim dtf As New System.Globalization.DateTimeFormatInfo dtf.LongDatePattern = "D" dtf.ShortDatePattern = "M/d/yyyy" Dim g As New FarPoint.Web.Spread.GeneralCellType g.CssClass = "CssStyle1" g.DateTimeFormat = dtf FpSpread1.ActiveSheetView.Cells(0, 0).CellType = g
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional