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 控制項中的資料行數。

適用於

另請參閱