DataGridViewRowPostPaintEventArgs コンストラクター

定義

DataGridViewRowPostPaintEventArgs クラスの新しいインスタンスを初期化します。

public:
 DataGridViewRowPostPaintEventArgs(System::Windows::Forms::DataGridView ^ dataGridView, System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle rowBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates rowState, System::String ^ errorText, System::Windows::Forms::DataGridViewCellStyle ^ inheritedRowStyle, bool isFirstDisplayedRow, bool isLastVisibleRow);
public DataGridViewRowPostPaintEventArgs (System.Windows.Forms.DataGridView dataGridView, System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle rowBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates rowState, string errorText, System.Windows.Forms.DataGridViewCellStyle inheritedRowStyle, bool isFirstDisplayedRow, bool isLastVisibleRow);
public DataGridViewRowPostPaintEventArgs (System.Windows.Forms.DataGridView dataGridView, System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle rowBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates rowState, string? errorText, System.Windows.Forms.DataGridViewCellStyle inheritedRowStyle, bool isFirstDisplayedRow, bool isLastVisibleRow);
new System.Windows.Forms.DataGridViewRowPostPaintEventArgs : System.Windows.Forms.DataGridView * System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * string * System.Windows.Forms.DataGridViewCellStyle * bool * bool -> System.Windows.Forms.DataGridViewRowPostPaintEventArgs
Public Sub New (dataGridView As DataGridView, graphics As Graphics, clipBounds As Rectangle, rowBounds As Rectangle, rowIndex As Integer, rowState As DataGridViewElementStates, errorText As String, inheritedRowStyle As DataGridViewCellStyle, isFirstDisplayedRow As Boolean, isLastVisibleRow As Boolean)

パラメーター

dataGridView
DataGridView

描画される行を所有する DataGridView

graphics
Graphics

DataGridViewRow の描画に使用する Graphics

clipBounds
Rectangle

描画が必要な DataGridView の領域を表す Rectangle

rowBounds
Rectangle

描画される DataGridViewRow の境界が格納された Rectangle

rowIndex
Int32

描画されるセルの行インデックス。

rowState
DataGridViewElementStates

行の状態を指定する DataGridViewElementStates 値のビットごとの組み合わせ。

errorText
String

行に関連付けられたエラー メッセージ。

inheritedRowStyle
DataGridViewCellStyle

行に関する書式とスタイルの情報が格納された DataGridViewCellStyle

isFirstDisplayedRow
Boolean

現在の行が、現在 DataGridView に表示されている最初の行かどうかを示す場合は true。それ以外の場合は false

isLastVisibleRow
Boolean

現在の行が、DataGridView プロパティが true に設定された、Visible の最後の行かどうかを示す場合は true。それ以外の場合は false

例外

dataGridViewnullです。

または

graphicsnullです。

または

inheritedRowStylenullです。

適用対象

こちらもご覧ください