DataGridViewTextBoxCell.Paint Metoda

Definice

Maluje aktuální 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)

Parametry

graphics
Graphics

Použité Graphics k malování DataGridViewCell.

clipBounds
Rectangle

A Rectangle představující oblast DataGridView , kterou je potřeba překreslit.

cellBounds
Rectangle

A Rectangle , který obsahuje hranice DataGridViewCell , které jsou malovány.

rowIndex
Int32

Index řádku buňky, která se maluje.

cellState
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot, které určují stav buňky.

value
Object

Data DataGridViewCell , která se malují.

formattedValue
Object

Formátovaná data DataGridViewCell , která se malují.

errorText
String

Chybová zpráva přidružená k buňce.

cellStyle
DataGridViewCellStyle

A DataGridViewCellStyle , který obsahuje informace o formátování a stylu buňky.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

A DataGridViewAdvancedBorderStyle , který obsahuje styly ohraničení buňky, která se maluje.

paintParts
DataGridViewPaintParts

Bitové kombinace DataGridViewPaintParts hodnot, které určují, které části buňky je potřeba malovat.

Platí pro

Viz také