DataGridViewHeaderCell.Paint Yöntem

Tanım

Geçerli DataGridViewHeaderCellöğesini boyar.

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)

Parametreler

graphics
Graphics

Hücreyi Graphics boyamak için kullanılan.

clipBounds
Rectangle

Rectangle Öğesinin yeniden boyanması DataGridView gereken alanını temsil eden bir.

cellBounds
Rectangle

Rectangle Boyanmakta olan hücrenin sınırlarını içeren bir.

rowIndex
Int32

Boyanmakta olan hücrenin satır dizini.

dataGridViewElementState
DataGridViewElementStates

Hücrenin DataGridViewElementStates durumunu belirten bit düzeyinde bir değer bileşimi.

value
Object

Boyanmakta olan hücrenin verileri.

formattedValue
Object

Boyanmakta olan hücrenin biçimlendirilmiş verileri.

errorText
String

Hücreyle ilişkili bir hata iletisi.

cellStyle
DataGridViewCellStyle

DataGridViewCellStyle Hücre hakkında biçimlendirme ve stil bilgilerini içeren bir.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

DataGridViewAdvancedBorderStyle Boyanmakta olan hücre için kenarlık stilleri içeren bir.

paintParts
DataGridViewPaintParts

Hücrenin hangi bölümlerinin DataGridViewPaintParts boyanacağı gerektiğini belirten değerlerin bit düzeyinde birleşimi.

Şunlara uygulanır