DataGridViewLinkCell.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);
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 , která představuje oblast DataGridView , kterou je potřeba překreslit.

cellBounds
Rectangle

A Rectangle obsahující hranice DataGridViewCell , které se malují.

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 o tom, co se maluje.

formattedValue
Object

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

errorText
String

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

cellStyle
DataGridViewCellStyle

A DataGridViewCellStyle obsahující informace o formátování a stylu buňky.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

A DataGridViewAdvancedBorderStyle obsahující styly ohraničení pro buňku, která se maluje.

paintParts
DataGridViewPaintParts

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

Platí pro

Viz také