DataGridView.PaintBackground(Graphics, Rectangle, Rectangle) Método

Definición

Dibuja el fondo del control 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)

Parámetros

graphics
Graphics

Objeto Graphics que se usa para dibujar el fondo.

clipBounds
Rectangle

Objeto Rectangle que representa el área del control DataGridView que hay que dibujar.

gridBounds
Rectangle

Objeto Rectangle que representa el área en el que se dibujan las celdas.

Comentarios

El clipBounds parámetro representa el área del DataGridView objeto que se debe volver a pintar. Por ejemplo, si un usuario cubre todo DataGridView con otra ventana y, a continuación clipBounds , lo descubre, representa todo DataGridView. Si un usuario cubre un área pequeña de DataGridView y, a continuación clipBounds , la descubre, representa el área pequeña que se ha cubierto.

Se aplica a

Consulte también