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

배경을 그릴 때 사용되는 Graphics입니다.The Graphics used to paint the background.

clipBounds
Rectangle Rectangle Rectangle

그려야 하는 Rectangle의 영역을 나타내는 DataGridView입니다.A Rectangle that represents the area of the DataGridView that needs to be painted.

gridBounds
Rectangle Rectangle Rectangle

셀이 그려지는 영역을 나타내는 Rectangle입니다.A 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.

적용 대상

추가 정보