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