DataGridView.PaintBackground(Graphics, Rectangle, Rectangle) Metoda

Definicja

Maluje tło obiektu 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

Używany Graphics do malowania tła.

clipBounds
Rectangle

Obiekt Rectangle reprezentujący obszar DataGridView , który musi być malowany.

gridBounds
Rectangle

Obiekt Rectangle reprezentujący obszar, w którym są rysowane komórki.

Uwagi

Parametr clipBounds reprezentuje obszar DataGridView , który musi zostać przemalowany. Jeśli na przykład użytkownik obejmuje całe okno DataGridView , a następnie je odkryje, reprezentuje clipBounds cały DataGridViewelement . Jeśli użytkownik obejmuje mały obszar obiektu DataGridView , a następnie go odkrywa, clipBounds reprezentuje mały obszar, który został pokryty.

Dotyczy

Zobacz też