GrapeCity.Win.Containers 名前空間 > GcCheckedGroupBox クラス : CheckAllItems メソッド |
// Click the button2 will check or uncheck all the check box items. private void button2_Click(object sender, EventArgs e) { if (AreAllItemsUnchecked) { this.gcCheckedGroupBox1.CheckAllItems(); } else { this.gcCheckedGroupBox1.UncheckAllItems(); } // Update button2's text to appropriate value. this.UpdateButton2Text(); }
' Click the button2 will check or uncheck all the check box items. Private Sub button2_Click(ByVal sender As Object, ByVal e As EventArgs) If AreAllItemsUnchecked Then Me.gcCheckedGroupBox1.CheckAllItems() Else Me.gcCheckedGroupBox1.UncheckAllItems() End If ' Update button2's text to appropriate value. Me.UpdateButton2Text() 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