DataGridViewLinkCell.Paint Метод

Определение

Рисует текущий DataGridViewCell.

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)

Параметры

graphics
Graphics

Используется Graphics для рисования DataGridViewCell.

clipBounds
Rectangle

Объект, Rectangle представляющий область DataGridView , которая должна быть переопределена.

cellBounds
Rectangle

Объект, Rectangle содержащий границы крашенного DataGridViewCell .

rowIndex
Int32

Индекс строки окрашенной ячейки.

cellState
DataGridViewElementStates

Побитовое сочетание значений DataGridViewElementStates , указывающее состояние ячейки.

value
Object

Данные крашенного DataGridViewCell объекта.

formattedValue
Object

Форматированные данные крашенного DataGridViewCell объекта.

errorText
String

Сообщение об ошибке, связанное с ячейкой.

cellStyle
DataGridViewCellStyle

Объект, DataGridViewCellStyle содержащий сведения о форматировании и стиле ячейки.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

Объект, DataGridViewAdvancedBorderStyle содержащий стили границ для окрашенной ячейки.

paintParts
DataGridViewPaintParts

Побитовое сочетание DataGridViewPaintParts значений, указывающее, какие части ячейки необходимо накрасить.

Применяется к

См. также раздел