DataGridTableStyle.SelectionForeColorChanged イベント

定義

SelectionForeColor 値が変更されたときに発生します。

public:
 event EventHandler ^ SelectionForeColorChanged;
public event EventHandler SelectionForeColorChanged;
member this.SelectionForeColorChanged : EventHandler 
Public Custom Event SelectionForeColorChanged As EventHandler 

イベントの種類

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

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

private void DataGridTableStyle1_SelectionForeColorChanged(Object sender, EventArgs e) {

   MessageBox.Show("You are in the DataGridTableStyle.SelectionForeColorChanged event.");
}
Private Sub DataGridTableStyle1_SelectionForeColorChanged(sender as Object, e as EventArgs) _ 
     Handles DataGridTableStyle1.SelectionForeColorChanged

   MessageBox.Show("You are in the DataGridTableStyle.SelectionForeColorChanged event.")

End Sub

適用対象

こちらもご覧ください