DataGridViewCellPaintingEventArgs Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy 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)

Parametry

dataGridView
DataGridView

Zawiera DataGridView komórkę do malowania.

graphics
Graphics

Używany Graphics do malowania .DataGridViewCell

clipBounds
Rectangle

Obiekt Rectangle , który reprezentuje obszar DataGridView , który musi zostać przemalowany.

cellBounds
Rectangle

Obiekt Rectangle , który zawiera granice DataGridViewCell malowanego obiektu.

rowIndex
Int32

Indeks wiersza komórki, która jest malowana.

columnIndex
Int32

Indeks kolumny komórki, która jest malowana.

cellState
DataGridViewElementStates

Bitowa kombinacja DataGridViewElementStates wartości, która określa stan komórki.

value
Object

Dane, DataGridViewCell które są malowane.

formattedValue
Object

Sformatowane dane DataGridViewCell , które są malowane.

errorText
String

Komunikat o błędzie skojarzony z komórką.

cellStyle
DataGridViewCellStyle

Obiekt DataGridViewCellStyle zawierający informacje o formatowaniu i stylu dotyczące komórki.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

Obiekt DataGridViewAdvancedBorderStyle zawierający style obramowania dla komórki, która jest malowana.

paintParts
DataGridViewPaintParts

Bitowa kombinacja DataGridViewPaintParts wartości określających części do malowania.

Wyjątki

dataGridView to null.

-lub-

graphics to null.

-lub-

cellStyle to null.

paintParts nie jest prawidłową kombinacją bitów DataGridViewPaintParts wartości.

Dotyczy

Zobacz też