DataGridViewRowPostPaintEventArgs Konstruktor
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy 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)
Parametry
- dataGridView
- DataGridView
Element DataGridView , który jest właścicielem wiersza, który jest malowany.
- graphics
- Graphics
Używany Graphics do malowania .DataGridViewRow
- clipBounds
- Rectangle
Element Rectangle reprezentujący obszar, DataGridView który musi być malowany.
- rowBounds
- Rectangle
Element Rectangle zawierający granice DataGridViewRow malowane.
- rowIndex
- Int32
Indeks wiersza komórki, która jest malowana.
- rowState
- DataGridViewElementStates
Bitowa kombinacja DataGridViewElementStates wartości, która określa stan wiersza.
- errorText
- String
Komunikat o błędzie skojarzony z wierszem.
- inheritedRowStyle
- DataGridViewCellStyle
Element DataGridViewCellStyle zawierający informacje o formatowaniu i stylu dotyczące wiersza.
- isFirstDisplayedRow
- Boolean
true
aby wskazać, czy bieżący wiersz jest pierwszym wierszem wyświetlanym obecnie w elemencie DataGridView; w przeciwnym razie false
.
- isLastVisibleRow
- Boolean
true
aby wskazać, czy bieżący wiersz jest ostatnim wierszem w DataGridView obiekcie, który ma Visible właściwość ustawioną na true
; w przeciwnym razie false
.
Wyjątki
dataGridView
to null
.
-lub-
graphics
to null
.
-lub-
inheritedRowStyle
to null
.