DataGridViewRowPrePaintEventArgs.PaintCells Metoda

Definice

Nakreslí zadané části buňky pro oblast v zadaných hranicích.

public:
 void PaintCells(System::Drawing::Rectangle clipBounds, System::Windows::Forms::DataGridViewPaintParts paintParts);
public void PaintCells (System.Drawing.Rectangle clipBounds, System.Windows.Forms.DataGridViewPaintParts paintParts);
member this.PaintCells : System.Drawing.Rectangle * System.Windows.Forms.DataGridViewPaintParts -> unit
Public Sub PaintCells (clipBounds As Rectangle, paintParts As DataGridViewPaintParts)

Parametry

clipBounds
Rectangle

A Rectangle , která určuje oblast DataGridView , která se má namalovat.

paintParts
DataGridViewPaintParts

Bitová kombinace DataGridViewPaintParts hodnot určujících části, které se mají malovat.

Výjimky

RowIndex je menší než nula nebo větší než počet řádků v ovládacím DataGridView prvku minus jeden.

Platí pro

Viz také