'Declaration Public Enum DateTimeFormat Inherits System.Enum
'Usage Dim instance As DateTimeFormat
public enum DateTimeFormat : System.Enum
'Declaration Public Enum DateTimeFormat Inherits System.Enum
'Usage Dim instance As DateTimeFormat
public enum DateTimeFormat : System.Enum
Member | Description |
---|---|
LongDate | Uses the long form for the date |
LongDateWithTime | Uses the long form for the date and time |
ShortDate | Uses the abbreviated form for the date |
ShortDateWithTime | Uses the abbreviated form for the date and time |
TimeOnly | Uses the time only (no date) |
UserDefined | Uses the user-defined date and time format |
FarPoint.Win.Spread.CellType.DateTimeCellType dattimct = new FarPoint.Win.Spread.CellType.DateTimeCellType(); System.DateTime spectime = new System.DateTime(2003, 1, 7, 10, 10, 5); dattimct.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.ShortDateWithTime; fpSpread1.ActiveSheet.Cells[0, 0].CellType = dattimct; fpSpread1.ActiveSheet.Cells[0, 0].Value = spectime; fpSpread1.ActiveSheet.Columns[0].Width = 200;
Dim dattimct As New FarPoint.Win.Spread.CellType.DateTimeCellType() Dim spectime As New System.DateTime(2003, 1, 7, 10, 10, 5) dattimct.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.ShortDateWithTime fpSpread1.ActiveSheet.Cells(0, 0).CellType = dattimct fpSpread1.ActiveSheet.Cells(0, 0).Value = spectime fpSpread1.ActiveSheet.Columns(0).Width = 200
System.Object
System.ValueType
System.Enum
FarPoint.Win.Spread.CellType.DateTimeFormat