共用方式為


DataGridViewRowPrePaintEventArgs.PaintCells 方法

定義

繪製所指定界限內區域之指定的儲存格部分。

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 控制項的資料列數減一。

適用於

另請參閱