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