PowerTools SPREAD for Windows Forms 8.0J
Items プロパティ (ListBoxCellType)


リスト ボックスの項目のリストを取得または設定します。
構文
'Declaration
 
Public Property Items As String()
'使用法
 
Dim instance As ListBoxCellType
Dim value() As String
 
instance.Items = value
 
value = instance.Items
public string[] Items {get; set;}

プロパティ値

リスト ボックスの項目を含む String の配列
次のサンプル コードは、リスト ボックス型セルを作成して外観を指定します。
FarPoint.Win.Spread.CellType.ListBoxCellType listbx = new FarPoint.Win.Spread.CellType.ListBoxCellType();
listbx.ImageList = ImageList1;
listbx.ItemData = new string[] { 
        "One",
        "Two",
        "Three"};
listbx.Items = new string[] {
        "One",
        "Two",
        "Three"};
listbx.ItemHeight = 40;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = listbx;
Dim listbx As New FarPoint.Win.Spread.CellType.ListBoxCellType
listbx.ImageList = ImageList1
listbx.ItemData = New String() {"One", "Two", "Three"}
listbx.Items = New String() {"One", "Two", "Three"}
listbx.ItemHeight = 40
FpSpread1.ActiveSheet.Cells(0, 0).CellType = listbx 
参照

ListBoxCellType クラス
ListBoxCellType メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.