DataGridViewButtonCell.Paint Metoda

Definice

Maluje aktuální DataGridViewButtonCell.

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)

Parametry

graphics
Graphics

Používá Graphics se k malování buňky.

clipBounds
Rectangle

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

cellBounds
Rectangle

A Rectangle obsahující hranice buňky, která je malována.

rowIndex
Int32

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

elementState
DataGridViewElementStates

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

value
Object

Data buňky, která se maluje.

formattedValue
Object

Formátovaná data buňky, 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