Share via


DataGridViewCheckBoxCell.Paint Yöntem

Tanım

Geçerli DataGridViewCheckBoxCellöğesini boyar.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates elementState, 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 elementState, 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 elementState, 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, elementState 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

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

cellBounds
Rectangle

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

rowIndex
Int32

Boyanmakta olan hücrenin satır dizini.

elementState
DataGridViewElementStates

Hücrenin DataGridViewElementStates durumunu belirten bit düzeyinde değer birleş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