DataGridViewHeaderCell.Paint Yöntem

Tanım

Geçerli DataGridViewHeaderCellöğesini boyar.

C#
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);
C#
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);

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

Ürün Sürümler
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10