Spread Windows Forms 6.0 Product Documentation
EditorValue Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > DateTimeCellType Class : EditorValue Property


Glossary Item Box

Gets or sets what value is written to the underlying data model.

Syntax

Visual Basic (Declaration) 
Public Property EditorValue As DateTimeEditorValue
Visual Basic (Usage)Copy Code
Dim instance As DateTimeCellType
Dim value As DateTimeEditorValue
 
instance.EditorValue = value
 
value = instance.EditorValue
C# 
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.
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

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.