DataGridViewRowPostPaintEventArgs.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 が 0 未満か、DataGridView コントロールの行数から 1 を引いた値を上回っています。

適用対象

こちらもご覧ください