DataGridView.PaintBackground(Graphics, Rectangle, Rectangle) DataGridView.PaintBackground(Graphics, Rectangle, Rectangle) DataGridView.PaintBackground(Graphics, Rectangle, Rectangle) Method

定義

DataGridView の背景を描画します。Paints the background of the 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);
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

パラメーター

graphics
Graphics Graphics Graphics

背景の描画に使用される GraphicsThe Graphics used to paint the background.

clipBounds
Rectangle Rectangle Rectangle

描画が必要な DataGridView の領域を表す RectangleA Rectangle that represents the area of the DataGridView that needs to be painted.

gridBounds
Rectangle Rectangle Rectangle

セルの描画領域を表す RectangleA Rectangle that represents the area in which cells are drawn.

注釈

パラメーター clipBoundsは、 DataGridView再描画が必要なの領域を表します。The clipBounds parameter represents the area of the DataGridView that needs to be repainted. たとえば、ユーザーが全体DataGridViewを別のウィンドウでカバーした後、そのclipBoundsウィンドウを明らかにするDataGridViewと、は全体を表します。For example, if a user covers the entire DataGridView with another window and then uncovers it, then clipBounds represents the entire DataGridView. ユーザーがのDataGridView小さな領域を対象としている場合はclipBounds 、がカバーされた小さな領域を表します。If a user covers a small area of the DataGridView and then uncovers it, then clipBounds represents the small area that was covered.

適用対象

こちらもご覧ください