Spread Windows Forms 12.0 Product Documentation
DateTimeEditorValue Enumeration
Example Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace : DateTimeEditorValue Enumeration
Specifies what is written out to the data model for a date-time cell.
Syntax
'Declaration
 
Public Enum DateTimeEditorValue 
   Inherits System.Enum
'Usage
 
Dim instance As DateTimeEditorValue
public enum DateTimeEditorValue : System.Enum 
Members
MemberDescription
DateSerial[2] Writes the serial value (double-precision, floating-point) of the cell date to the model
DateTime[1] Writes the DateTime object of the cell to the model
String[0] Writes the text value of the cell to the model
Example
This example writes the serial value to the model.
FarPoint.Win.Spread.CellType.DateTimeCellType dt = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dt.EditorValue = FarPoint.Win.Spread.CellType.DateTimeEditorValue.DateSerial;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = dt;
Dim dt As New FarPoint.Win.Spread.CellType.DateTimeCellType
dt.EditorValue = FarPoint.Win.Spread.CellType.DateTimeEditorValue.DateSerial
fpSpread1.ActiveSheet.Cells(0, 0).CellType = dt
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.CellType.DateTimeEditorValue

See Also

Reference

FarPoint.Win.Spread.CellType Namespace
EditorValue Property (DateTimeCellType Class)

User-Task Documentation

Setting a Date-Time Cell