DataGridViewRowPostPaintEventArgs.PaintCellsBackground Metoda

Definicja

Maluje tła komórek dla obszaru w określonych granicach.

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)

Parametry

clipBounds
Rectangle

Element Rectangle określający obszar DataGridView do malowania.

cellsPaintSelectionBackground
Boolean

true aby malować tło określonych granic z kolorem SelectionBackColor właściwości InheritedStyle; false aby malować tło określonych granic z kolorem BackColor właściwości InheritedStyle.

Wyjątki

RowIndex jest mniejsza niż zero lub większa niż liczba wierszy w kontrolce DataGridView minus jeden.

Dotyczy

Zobacz też