DataGridViewCheckBoxCell.Paint Метод

Определение

Закрашивает текущую ячейку DataGridViewCheckBoxCell.

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)

Параметры

graphics
Graphics

Объект Graphics, используемый для закрашивания ячейки.

clipBounds
Rectangle

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

cellBounds
Rectangle

Объект Rectangle, который содержит границы закрашиваемой ячейки.

rowIndex
Int32

Индекс строки, содержащей закрашиваемую ячейку.

elementState
DataGridViewElementStates

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

value
Object

Данные закрашиваемой ячейки.

formattedValue
Object

Форматированные данные закрашиваемой ячейки.

errorText
String

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

cellStyle
DataGridViewCellStyle

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

advancedBorderStyle
DataGridViewAdvancedBorderStyle

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

paintParts
DataGridViewPaintParts

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

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