PowerTools PlusPak for Windows Forms 8.0J
Expanded イベント
使用例 

グループボックスコントロールが展開されたときに発生します。
構文
Public Event Expanded As EventHandler
public event EventHandler Expanded
使用例

次のサンプルコードは、Expandedイベントのイベントハンドラを指定してイベントコードを記述する方法を示します。この例では、Expandedイベントのイベントハンドラを追加し、そのイベントハンドラ内でヘッダテキストを変更しています。

このサンプルコードを実行するには、プロジェクトを作成し、HeaderType.ExpanderAndTextヘッダが設定されたgcRadioGroupBoxという名前のGcRadioGroupBoxインスタンスを追加して、以下のコードをプロジェクトに貼り付けます。そして、このイベントハンドラをExpandedイベントに関連付けます。

private void GcRadioGroupBox1_Expanded(object sender, EventArgs e)
{
    (sender as GcRadioGroupBox).Text = "&Collapse All";
}
Private Sub GcRadioGroupBox1_Expanded(ByVal sender As Object, ByVal e As EventArgs)
    TryCast(sender, GcRadioGroupBox).Text = "&Collapse All"
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

参照

GcGroupBoxControlBase クラス
GcGroupBoxControlBase メンバ
Expanding イベント
OnExpanding メソッド
OnExpanded メソッド
Expanding イベント
OnExpanding メソッド
OnExpanded メソッド

Send Feedback