FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DateTimeCellType Class > DateTimeCellType Constructor : DateTimeCellType Constructor(String) |
'Declaration Public Function New( _ ByVal errorMessage As String _ )
'Usage Dim errorMessage As String Dim instance As New DateTimeCellType(errorMessage)
public DateTimeCellType( string errorMessage )
Dim datecell As New FarPoint.Web.Spread.DateTimeCellType("Needadate!!") datecell.FormatString="d" FpSpread1.Sheets(0).Cells(0,0).CellType=datecell FpSpread1.Sheets(0).Cells(0,0).Value=System.DateTime.Now.ToOADate() FpSpread1.Sheets(0).Columns(0).Width=175
FarPoint.Web.Spread.DateTimeCellType datecell=new FarPoint.Web.Spread.DateTimeCellType("Needadate!!"); datecell.FormatString="d"; FpSpread1.Sheets[0].Cells[0,0].CellType=datecell; FpSpread1.Sheets[0].Cells[0,0].Value=System.DateTime.Now.ToOADate(); FpSpread1.Sheets[0].Columns[0].Width=175;
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional