DataGridViewRowPostPaintEventArgs.PaintCellsBackground 方法

定义

绘制指定边界中区域的单元格背景。

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)

参数

clipBounds
Rectangle

一个 Rectangle ,指定要绘制的区域 DataGridView

cellsPaintSelectionBackground
Boolean

true若要用指定边界的颜色SelectionBackColorInheritedStyle绘制指定边界的背景,则为 ,false以用该属性BackColor的颜色InheritedStyle绘制指定边界的背景。

例外

RowIndex 小于零或大于控件中的 DataGridView 行数减一。

适用于

另请参阅