DataGridView.PaintBackground(Graphics, Rectangle, Rectangle) Metoda

Definice

Maluje pozadí DataGridView.

protected:
 virtual void PaintBackground(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle gridBounds);
protected virtual void PaintBackground (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle gridBounds);
override this.PaintBackground : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle -> unit
abstract member PaintBackground : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle -> unit
override this.PaintBackground : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle -> unit
Protected Overridable Sub PaintBackground (graphics As Graphics, clipBounds As Rectangle, gridBounds As Rectangle)

Parametry

graphics
Graphics

Používá Graphics se k malování pozadí.

clipBounds
Rectangle

A Rectangle , který představuje oblast DataGridView , která musí být malována.

gridBounds
Rectangle

A Rectangle , která představuje oblast, ve které jsou nakresleny buňky.

Poznámky

Parametr clipBounds představuje oblast DataGridView , kterou je potřeba překreslit. Pokud například uživatel překryje celý DataGridView jiným oknem a pak clipBounds ho odhalí, představuje celý DataGridView. Pokud uživatel pokrývá malou oblast DataGridView a pak ji odhalí, clipBounds představuje malou oblast, která byla pokryta.

Platí pro

Viz také