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