PowerTools PlusPak for Windows Forms 8.0J
EnableAllItems メソッド (GcCheckedGroupBox)
使用例 

GcCheckedGroupBoxコントロールに含まれるすべての項目を有効にします。
構文
Public Sub EnableAllItems() 
public void EnableAllItems()
使用例
次のサンプルコードは、EnableAllItemsメソッドとDisableAllItemsメソッドを使用してGcCheckedGroupBoxコントロール内のすべての項目を有効または無効にする方法を示します。この例では、button3をクリックすると、すべての項目が無効状態の場合は有効に、すべての項目が有効状態の場合は無効に変更された後、ボタンのテキストが更新されます。このサンプルコードは、GcCheckedGroupBoxクラスの概要に示されている詳細なコード例の一部を抜粋したものです。
// 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

参照

GcCheckedGroupBox クラス
GcCheckedGroupBox メンバ
DisableAllItems メソッド
DisableAllItems メソッド

Send Feedback