Spread Windows Forms 9.0 Product Documentation
EditorValue Property (DateTimeCellType)
Example 


Gets or sets what value is written to the underlying data model.
Syntax
'Declaration
 
Public Property EditorValue As DateTimeEditorValue
'Usage
 
Dim instance As DateTimeCellType
Dim value As DateTimeEditorValue
 
instance.EditorValue = value
 
value = instance.EditorValue
public DateTimeEditorValue EditorValue {get; set;}

Property Value

DateTimeEditorValue setting that determines the type of data used in the data model for date-time cell values
Remarks
If you set the Value property for a cell, make sure the Value property matches the type specified by this property.
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

DateTimeCellType Class
DateTimeCellType Members
DateTimeEditorValue Enum
SetEditorValue Method

 

 


Copyright © GrapeCity, inc. All rights reserved.