DataGridViewRowPostPaintEventArgs.PaintCells 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
绘制指定边界中区域的指定单元格部分。
public:
void PaintCells(System::Drawing::Rectangle clipBounds, System::Windows::Forms::DataGridViewPaintParts paintParts);
public void PaintCells(System.Drawing.Rectangle clipBounds, System.Windows.Forms.DataGridViewPaintParts paintParts);
member this.PaintCells : System.Drawing.Rectangle * System.Windows.Forms.DataGridViewPaintParts -> unit
Public Sub PaintCells (clipBounds As Rectangle, paintParts As DataGridViewPaintParts)
参数
- clipBounds
- Rectangle
一个 Rectangle ,指定要绘制的区域 DataGridView 。
- paintParts
- DataGridViewPaintParts
指定要绘制的部件的值的 DataGridViewPaintParts 按位组合。
例外
RowIndex 小于零或大于控件中的 DataGridView 行数减一。