DataGridViewRowPostPaintEventArgs.PaintCellsBackground Método

Definición

Pinta el fondo de celda del área comprendida entre los límites especificados.

public:
 void PaintCellsBackground(System::Drawing::Rectangle clipBounds, bool cellsPaintSelectionBackground);
public void PaintCellsBackground (System.Drawing.Rectangle clipBounds, bool cellsPaintSelectionBackground);
member this.PaintCellsBackground : System.Drawing.Rectangle * bool -> unit
Public Sub PaintCellsBackground (clipBounds As Rectangle, cellsPaintSelectionBackground As Boolean)

Parámetros

clipBounds
Rectangle

Rectangle que especifica el área de DataGridView que se va a dibujar.

cellsPaintSelectionBackground
Boolean

true para pintar el fondo entre los límites especificados con el color de la propiedad SelectionBackColor de InheritedStyle; false para pintar el fondo entre los límites especificados con el color que determina la propiedad BackColor de InheritedStyle.

Excepciones

RowIndex es menor que cero o mayor que el número de filas del control DataGridView menos uno.

Se aplica a

Consulte también