DataGridViewRowPostPaintEventArgs.PaintCellsBackground(Rectangle, Boolean) 메서드

정의

지정된 범위의 영역에 셀 배경을 그립니다.Paints the cell backgrounds for the area in the specified bounds.

public:
 void PaintCellsBackground(System::Drawing::Rectangle clipBounds, bool cellsPaintSelectionBackground);
public void PaintCellsBackground (System.Drawing.Rectangle clipBounds, bool cellsPaintSelectionBackground);
member this.PaintCellsBackground : System.Drawing.Rectangle * bool -> unit
Public Sub PaintCellsBackground (clipBounds As Rectangle, cellsPaintSelectionBackground As Boolean)

매개 변수

clipBounds
Rectangle

그릴 Rectangle의 영역을 지정하는 DataGridView입니다.A Rectangle that specifies the area of the DataGridView to be painted.

cellsPaintSelectionBackground
Boolean

SelectionBackColorInheritedStyle 속성 색으로 지정된 범위의 배경을 그리려면 true이고, BackColorInheritedStyle 속성 색으로 지정된 범위의 배경을 그리려면 false입니다.true to paint the background of the specified bounds with the color of the SelectionBackColor property of the InheritedStyle; false to paint the background of the specified bounds with the color of the BackColor property of the InheritedStyle.

예외

RowIndex가 0보다 작거나 DataGridView 컨트롤의 행 수에서 1을 뺀 값보다 큰 경우RowIndex is less than zero or greater than the number of rows in the DataGridView control minus one.

적용 대상

추가 정보