Spread Windows Forms 11.0 Product Documentation
EditorValue Enumeration
Example Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace : EditorValue Enumeration
Specifies what is written out to the data model for a selected item, from certain cell types that offer a selection of multiple values.
Syntax
'Declaration
 
Public Enum EditorValue 
   Inherits System.Enum
'Usage
 
Dim instance As EditorValue
public enum EditorValue : System.Enum 
Members
MemberDescription
Index[1] Writes the index of the selected item to the model
ItemData[2] Writes the corresponding data of the selected item to the model
String[0] Writes the text value of the selected item to the model
Remarks

This enumeration is for combo box cells and multiple option (radio button) cells, which offer multiple values as items to be selected. Each value corresponds with an index number of that value.

Example
This example returns the index of the selected item in the list of a combo box.
FarPoint.Win.Spread.CellType.ComboBoxCellType cb = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
cb.Items = new string[] {"A", "G"};
cb.ItemData = new string[] {"Alpha", "Gamma"};
cb.EditorValue = FarPoint.Win.Spread.CellType.EditorValue.Index;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = cb;
Dim cb As New FarPoint.Win.Spread.CellType.ComboBoxCellType
cb.Items = New String() {"A", "G"}
cb.ItemData = New String() {"Alpha", "Gamma"}
cb.EditorValue = FarPoint.Win.Spread.CellType.EditorValue.Index
fpSpread1.ActiveSheet.Cells(0, 0).CellType = cb
Inheritance Hierarchy

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

See Also

Reference

FarPoint.Win.Spread.CellType Namespace
EditorValue Property (ComboBoxCellType Class)
EditorValue Property (MultiOptionCellType Class)

User-Task Documentation

Setting a Combo Box Cell
Setting a Multiple-Option Cell