ToolStripDropDown.BackgroundImageLayoutChanged イベント

定義

BackgroundImage プロパティの値が変化したときに発生します。

public:
 event EventHandler ^ BackgroundImageLayoutChanged;
[System.ComponentModel.Browsable(false)]
public event EventHandler BackgroundImageLayoutChanged;
[System.ComponentModel.Browsable(false)]
public event EventHandler? BackgroundImageLayoutChanged;
[<System.ComponentModel.Browsable(false)>]
member this.BackgroundImageLayoutChanged : EventHandler 
Public Custom Event BackgroundImageLayoutChanged As EventHandler 

イベントの種類

属性

次のコード例では、このメンバーの使用方法を示します。 この例では、イベント ハンドラーがイベントの BackgroundImageLayoutChanged 発生を報告します。 このレポートは、イベントが発生したタイミングを知るのに役立ち、デバッグに役立ちます。 複数のイベントまたは頻繁に発生するイベントを報告するには、 を Console.WriteLine に置き換えるかMessageBox.Show、複数行TextBoxにメッセージを追加することを検討してください。

コード例を実行するには、 という名前ToolStripDropDown1の型ToolStripDropDownのインスタンスを含むプロジェクトに貼り付けます。 次に、イベント ハンドラーが イベントに関連付けられていることを確認します BackgroundImageLayoutChanged

private void ToolStripDropDown1_BackgroundImageLayoutChanged(Object sender, EventArgs e) {

   MessageBox.Show("You are in the ToolStripDropDown.BackgroundImageLayoutChanged event.");
}
Private Sub ToolStripDropDown1_BackgroundImageLayoutChanged(sender as Object, e as EventArgs) _ 
     Handles ToolStripDropDown1.BackgroundImageLayoutChanged

   MessageBox.Show("You are in the ToolStripDropDown.BackgroundImageLayoutChanged event.")

End Sub

注釈

イベントの処理の詳細については、「処理とイベントの発生」を参照してください。

適用対象