MESCIUS SPREAD for Windows Forms 17.0J
ItemType プロパティ (DefaultSheetDataModel)

リストデータソースのリストに含まれるオブジェクトの型を取得または設定します。
構文
'Declaration
 
Public Property ItemType As Type
public Type ItemType {get; set;}

プロパティ値

項目の型を含む Type オブジェクト
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())
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()); 
参照

DefaultSheetDataModel クラス
DefaultSheetDataModel メンバ

 

 


© MESCIUS inc. All rights reserved.