GrapeCity.Win.Containers 名前空間 > GcCheckedGroupBox クラス : Items プロパティ |
Public ReadOnly Property Items As CheckBoxItemCollection
public CheckBoxItemCollection Items {get;}
// Fill listBox1 with all the items in gcCheckedGroupBox1. private void DisplayAllItems() { // Display all the items of gcCheckedGroupBox1 in list box. this.listBox1.Items.Clear(); CheckBoxItemCollection items = this.gcCheckedGroupBox1.Items; foreach (CheckBoxItem item in items) { this.listBox1.Items.Add( item.Text + " index: " + items.IndexOf(item).ToString() + " checked state: " + item.Checked); } }
' Fill listBox1 with all the items in gcCheckedGroupBox1. Private Sub DisplayAllItems() ' Display all the items of gcCheckedGroupBox1 in list box. Me.listBox1.Items.Clear() Dim items As CheckBoxItemCollection = Me.gcCheckedGroupBox1.Items For Each item As CheckBoxItem In items Me.listBox1.Items.Add(item.Text + " index: " + items.IndexOf(item).ToString() + " checked state: " + item.Checked.ToString()) Next End Sub
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