Spread Windows Forms 10.0 Product Documentation
ItemData Property (MultiOptionCellType)
Example 


Gets or sets the corresponding data for the items in the list of options.
Syntax
'Declaration
 
Public Property ItemData As String()
'Usage
 
Dim instance As MultiOptionCellType
Dim value() As String
 
instance.ItemData = value
 
value = instance.ItemData
public string[] ItemData {get; set;}

Property Value

String array of data corresponding to the items
Example
This example specifies a list of items and their corresponding data to use for the multiple option buttons.
FarPoint.Win.Spread.CellType.MultiOptionCellType multcell = new FarPoint.Win.Spread.CellType.MultiOptionCellType(); 
multcell.Items = new String[] {"Carbon", "Oxygen", "Hydrogen"}; 
multcell.ItemData = new String[] {"C", "O2", "H"};
multcell.Orientation = FarPoint.Win.RadioOrientation.Vertical; 
fpSpread1.ActiveSheet.Cells[0, 0].CellType = multcell;
Dim multcell As New FarPoint.Win.Spread.CellType.MultiOptionCellType()
multcell.Items = new String() {"Carbon", "Oxygen", "Hydrogen"}
multcell.ItemData = new String() {"C", "O2", "H"}
multcell.Orientation = FarPoint.Win.RadioOrientation.Vertical
FpSpread1.ActiveSheet.Cells(0, 0).CellType = multcell
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

MultiOptionCellType Class
MultiOptionCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.