DataGridView.PaintBackground(Graphics, Rectangle, Rectangle) メソッド

定義

DataGridView の背景を描画します。

protected:
 virtual void PaintBackground(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle gridBounds);
protected virtual void PaintBackground (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle gridBounds);
override this.PaintBackground : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle -> unit
abstract member PaintBackground : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle -> unit
override this.PaintBackground : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle -> unit
Protected Overridable Sub PaintBackground (graphics As Graphics, clipBounds As Rectangle, gridBounds As Rectangle)

パラメーター

graphics
Graphics

背景の描画に使用される Graphics

clipBounds
Rectangle

描画が必要な DataGridView の領域を表す Rectangle

gridBounds
Rectangle

セルの描画領域を表す Rectangle

注釈

パラメーターは clipBounds 、再描画する必要がある の DataGridView 領域を表します。 たとえば、ユーザーが別のウィンドウで全体 DataGridView をカバーし、それを発見した場合 clipBounds 、 は 全体 DataGridViewを表します。 ユーザーが の小さな領域を DataGridView カバーし、それを明らかにする場合 clipBounds は、カバーされた小さな領域を表します。

適用対象

こちらもご覧ください