言語

DataGridViewCellPaintingEventArgs.PaintContent(Rectangle) メソッド

定義

指定した境界内の領域のセルの内容を塗りつぶします。

public:
 void PaintContent(System::Drawing::Rectangle clipBounds);
public void PaintContent(System.Drawing.Rectangle clipBounds);
member this.PaintContent : System.Drawing.Rectangle -> unit
Public Sub PaintContent (clipBounds As Rectangle)

パラメーター

clipBounds
Rectangle

塗りつぶすRectangleの領域を指定するDataGridView

例外

RowIndex が -1 より小さいか、 DataGridView コントロールの行数以上です。

-又は-

ColumnIndex が -1 より小さいか、 DataGridView コントロール内の列の数以上です。

適用対象

こちらもご覧ください