DataGridViewRowPostPaintEventArgs Konstruktor

Definice

Inicializuje novou instanci DataGridViewRowPostPaintEventArgs třídy.

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)

Parametry

dataGridView
DataGridView

Ten DataGridView vlastní řádek, který je malován.

graphics
Graphics

Použité Graphics k malování DataGridViewRow.

clipBounds
Rectangle

A Rectangle , který představuje oblast DataGridView , která musí být malována.

rowBounds
Rectangle

A Rectangle obsahující hranice DataGridViewRow , které se malují.

rowIndex
Int32

Index řádku buňky, která se maluje.

rowState
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot, které určují stav řádku.

errorText
String

Chybová zpráva přidružená k řádku.

inheritedRowStyle
DataGridViewCellStyle

A DataGridViewCellStyle obsahující informace o formátování a stylu řádku.

isFirstDisplayedRow
Boolean

true určuje, zda je aktuální řádek prvním řádkem aktuálně zobrazeným v souboru DataGridView; v opačném případě false.

isLastVisibleRow
Boolean

true určuje, zda je aktuální řádek posledním řádkem, DataGridView který má vlastnost nastavenou Visible na true; v opačném případě false.

Výjimky

dataGridView je null.

-nebo- graphics je null.

-nebo- inheritedRowStyle je null.

Platí pro

Viz také