DataGridViewColumnHeaderCell.Paint Metoda

Definicja

Maluje bieżący element DataGridViewColumnHeaderCell.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates dataGridViewElementState, System::Object ^ value, System::Object ^ formattedValue, System::String ^ errorText, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, System::Windows::Forms::DataGridViewAdvancedBorderStyle ^ advancedBorderStyle, System::Windows::Forms::DataGridViewPaintParts paintParts);
protected override void Paint (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates dataGridViewElementState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
protected override void Paint (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates dataGridViewElementState, object? value, object? formattedValue, string? errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * obj * obj * string * System.Windows.Forms.DataGridViewCellStyle * System.Windows.Forms.DataGridViewAdvancedBorderStyle * System.Windows.Forms.DataGridViewPaintParts -> unit
Protected Overrides Sub Paint (graphics As Graphics, clipBounds As Rectangle, cellBounds As Rectangle, rowIndex As Integer, dataGridViewElementState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

Parametry

graphics
Graphics

Używany Graphics do malowania komórki.

clipBounds
Rectangle

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

cellBounds
Rectangle

Obiekt Rectangle zawierający granice komórki, która jest malowana.

rowIndex
Int32

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

dataGridViewElementState
DataGridViewElementStates

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

value
Object

Dane komórki, która jest malowana.

formattedValue
Object

Sformatowane dane komórki, która jest malowana.

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, które części komórki należy malować.

Dotyczy