DataGridViewRowPostPaintEventArgs.PaintCellsBackground 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
绘制指定边界中区域的单元格背景。
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 行数减一。