DataGridViewCellStyleContentChangedEventArgs クラス
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文
解説CellStyleContentChanged イベントは、次のプロパティの 1 つによって返される DataGridViewCellStyle オブジェクトのプロパティ値が変更された場合に発生します。
-
DataGridViewCell.Style
-
DataGridViewColumn.DefaultCellStyle
-
DataGridViewRow.DefaultCellStyle
-
DataGridView.RowHeadersDefaultCellStyle
-
DataGridView.RowsDefaultCellStyle
-
DataGridView.ColumnHeadersDefaultCellStyle
-
DataGridView.AlternatingRowsDefaultCellStyle
-
DataGridView.DefaultCellStyle
ただし、これらのプロパティの 1 つが異なる DataGridViewCellStyle オブジェクトに設定されると、対応する PropertyNameChanged イベントは発生しますが、CellStyleContentChanged イベントは発生しません。
CellStyleScope プロパティを使用すると、どのプロパティの DataGridViewCellStyle が変更されたのかを確認できます。CellStyle プロパティを使用すると、更新された値を取得できます。
継承階層System.EventArgs
System.Windows.Forms.DataGridViewCellStyleContentChangedEventArgs
スレッド セーフ
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- DataGridViewCellStyleContentChangedEventArgs クラスのページへのリンク