DataGridViewCellPaintingEventArgs コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
DataGridViewCellPaintingEventArgs クラスの新しいインスタンスを初期化します。
public:
DataGridViewCellPaintingEventArgs(System::Windows::Forms::DataGridView ^ dataGridView, System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, int columnIndex, System::Windows::Forms::DataGridViewElementStates cellState, System::Object ^ value, System::Object ^ formattedValue, System::String ^ errorText, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, System::Windows::Forms::DataGridViewAdvancedBorderStyle ^ advancedBorderStyle, System::Windows::Forms::DataGridViewPaintParts paintParts);
public DataGridViewCellPaintingEventArgs (System.Windows.Forms.DataGridView dataGridView, System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, int columnIndex, System.Windows.Forms.DataGridViewElementStates cellState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
public DataGridViewCellPaintingEventArgs (System.Windows.Forms.DataGridView dataGridView, System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, int columnIndex, System.Windows.Forms.DataGridViewElementStates cellState, object? value, object? formattedValue, string? errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle? advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
new System.Windows.Forms.DataGridViewCellPaintingEventArgs : System.Windows.Forms.DataGridView * System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * int * System.Windows.Forms.DataGridViewElementStates * obj * obj * string * System.Windows.Forms.DataGridViewCellStyle * System.Windows.Forms.DataGridViewAdvancedBorderStyle * System.Windows.Forms.DataGridViewPaintParts -> System.Windows.Forms.DataGridViewCellPaintingEventArgs
Public Sub New (dataGridView As DataGridView, graphics As Graphics, clipBounds As Rectangle, cellBounds As Rectangle, rowIndex As Integer, columnIndex As Integer, cellState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)
パラメーター
- dataGridView
- DataGridView
描画されるセルを含んだ DataGridView。
- graphics
- Graphics
DataGridViewCell の描画に使用する Graphics。
- clipBounds
- Rectangle
再描画が必要な DataGridView の領域を表す Rectangle。
- cellBounds
- Rectangle
描画される DataGridViewCell の境界が格納された Rectangle。
- rowIndex
- Int32
描画されるセルの行インデックス。
- columnIndex
- Int32
描画されるセルの列インデックス。
- cellState
- DataGridViewElementStates
セルの状態を指定する DataGridViewElementStates 値のビットごとの組み合わせ。
- value
- Object
描画される DataGridViewCell のデータ。
- formattedValue
- Object
描画される DataGridViewCell の書式指定済みデータ。
- errorText
- String
セルに関連付けられたエラー メッセージ。
- cellStyle
- DataGridViewCellStyle
セルに関する書式とスタイルの情報を格納する DataGridViewCellStyle。
- advancedBorderStyle
- DataGridViewAdvancedBorderStyle
描画されるセルの境界線スタイルが格納された DataGridViewAdvancedBorderStyle。
- paintParts
- DataGridViewPaintParts
描画する部分を指定する DataGridViewPaintParts 値のビットごとの組み合わせ。
例外
paintParts
は、DataGridViewPaintParts 値のビットごとの正しい組み合わせではありません。
適用対象
こちらもご覧ください
.NET