Gets or sets the type of the object in the list for the list data source.
            
            
            
Syntax
| Visual Basic (Declaration) |   | 
|---|
Public Property ItemType As Type  | 
 
| Visual Basic (Usage) |  Copy Code | 
|---|
Dim instance As DefaultSheetDataModel
Dim value As Type
 
instance.ItemType = value
 
value = instance.ItemType  | 
 
| C# |   | 
|---|
public Type ItemType {get; set;} | 
 
            
            
            Property Value
Type object containing type of item
 
            
			
			
            
            
            
            
Example
| Visual Basic |  Copy Code | 
|---|
Dim strArray() As String = {"Ronnie", "Jack", "Lori", "Max", "Tricky"}
Dim dataModel As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5)
dataModel.DataSource = strArray
FpSpread1.ActiveSheet.Models.Data = dataModel
Dim t As Type
t = dataModel.ItemType
ListBox1.Items.Add(t.ToString()) | 
 
| C# |  Copy Code | 
|---|
string[] strArray = new string[5] {"Ronnie", "Jack", "Lori", "Max", "Tricky"};
FarPoint.Win.Spread.Model.DefaultSheetDataModel dataModel = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(8, 8);
dataModel.DataSource = strArray;
fpSpread1.ActiveSheet.Models.Data = dataModel;
Type t;
t = dataModel.ItemType;
listBox1.Items.Add(t.ToString());  | 
 
 
            
            
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
 
            
            
See Also