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


Glossary Item Box

Gets or sets the corresponding data for the items in the list of options.

Syntax

Visual Basic (Declaration) 
Public Property ItemData As String()
Visual Basic (Usage)Copy Code
Dim instance As MultiOptionCellType
Dim value() As String
 
instance.ItemData = value
 
value = instance.ItemData
C# 
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.
C#Copy Code
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;
Visual BasicCopy Code
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 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.