Aracılığıyla paylaş


DataGridViewLinkCell.Paint Yöntem

Tanım

Geçerli DataGridViewCellöğesini boyar.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, 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);
protected override void Paint (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, 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);
protected override void Paint (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, 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);
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, cellState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

Parametreler

graphics
Graphics

öğesini Graphics boyamak DataGridViewCelliçin kullanılır.

clipBounds
Rectangle

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

cellBounds
Rectangle

Rectangle Boyanmakta olan sınırlarını DataGridViewCell içeren.

rowIndex
Int32

Boyanmakta olan hücrenin satır dizini.

cellState
DataGridViewElementStates

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

value
Object

Boyanmakta DataGridViewCell olan öğesinin verileri.

formattedValue
Object

Boyanmakta olan öğesinin DataGridViewCell 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

Ayrıca bkz.