Spread Windows Forms 6.0 Product Documentation
DateTimeEditorValue Enumeration
Example  See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace : DateTimeEditorValue Enumeration


Glossary Item Box

Specifies what is written out to the data model for a date-time cell.

Syntax

Visual Basic (Declaration) 
Public Enum DateTimeEditorValue 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As DateTimeEditorValue
C# 
public enum DateTimeEditorValue : System.Enum 

Members

MemberDescription
DateSerial[2] Writes to the model the serial value (double-precision, floating-point) of the date of the cell
DateTime[1] Writes to the model the DateTime object of the cell
String[0] Writes to the model the text value of the cell

Example

This example writes the serial value to the model.
C#Copy Code
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;
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.