PowerTools CalendarGrid for Windows Forms 1.0J
Items プロパティ (CalendarGcComboBoxCellType)
使用例 

項目のコレクションを取得します。
構文
Public ReadOnly Property Items As ListItemCollection
public ListItemCollection Items {get;}

プロパティ値

コンボ項目のコレクションを表す ListItemCollection
使用例
次のサンプルコードは、このプロパティの使用方法を示します。このサンプルコードは、GcComboBoxCell に示されている詳細なコード例の一部を抜粋したものです。
private void Form1_Load(object sender, EventArgs e)
{
    CalendarGcComboBoxCellType gcComboBoxCell1 = new CalendarGcComboBoxCellType();
    gcComboBoxCell1.DropDownStyle = CalendarGridComboBoxStyle.DropDown;

    gcComboBoxCell1.Items.AddRange(new string[] { "One", "Two", "Three" });

    CalendarTemplate template1 = CalendarTemplate.CreateDefaultTemplate();
    template1.Content[1, 0].CellType = gcComboBoxCell1;
    template1.Content[2, 0].CellType = gcComboBoxCell1.Clone();

    gcCalendarGrid1.Template = template1;
}
Private Sub Form1_Load(sender As Object, e As EventArgs)
    Dim gcComboBoxCell1 As New CalendarGcComboBoxCellType()
    gcComboBoxCell1.DropDownStyle = CalendarGridComboBoxStyle.DropDown

    gcComboBoxCell1.Items.AddRange(New String() {"One", "Two", "Three"})

    Dim template1 As CalendarTemplate = CalendarTemplate.CreateDefaultTemplate()
    template1.Content(1, 0).CellType = gcComboBoxCell1
    template1.Content(2, 0).CellType = gcComboBoxCell1.Clone()

    gcCalendarGrid1.Template = template1
End Sub
参照

CalendarGcComboBoxCellType クラス
CalendarGcComboBoxCellType メンバ

 

 


© 2014 GrapeCity inc. All rights reserved.