DataGridViewRowPrePaintEventArgs Konstruktor

Definice

Inicializuje novou instanci DataGridViewRowPrePaintEventArgs třídy .

public:
 DataGridViewRowPrePaintEventArgs(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 DataGridViewRowPrePaintEventArgs (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 DataGridViewRowPrePaintEventArgs (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.DataGridViewRowPrePaintEventArgs : 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.DataGridViewRowPrePaintEventArgs
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

The DataGridView owns the row that is maled.

graphics
Graphics

Slouží Graphics k malování .DataGridViewRow

clipBounds
Rectangle

A Rectangle , která představuje oblast DataGridView , která se má namalovat.

rowBounds
Rectangle

A Rectangle obsahující hranice malovaného objektu DataGridViewRow .

rowIndex
Int32

Index řádku malované buňky.

rowState
DataGridViewElementStates

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

errorText
String

Chybová zpráva, která je přidružena k řádku.

inheritedRowStyle
DataGridViewCellStyle

A DataGridViewCellStyle , který obsahuje 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 DataGridViewv . V opačném případě false.

isLastVisibleRow
Boolean

true určuje, jestli je aktuální řádek posledním řádkem v objektu DataGridView , který má vlastnost nastavenou Visible na truehodnotu . V falseopačném případě .

Výjimky

dataGridView je null.

-nebo-

graphics je null.

-nebo-

inheritedRowStyle je null.

Platí pro

Viz také