DataGridViewRowPostPaintEventArgs.PaintCellsBackground 메서드

정의

지정된 범위에서 영역의 셀 배경을 그립니다.

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 지정하는 A DataGridView 입니다.

cellsPaintSelectionBackground
Boolean

true지정된 범위의 배경을 속성의 SelectionBackColor 색으로 그리려면 ; InheritedStyle 의 속성 falseBackColor색으로 지정된 경계의 InheritedStyle 배경을 그립니다.

예외

RowIndex 가 0보다 작거나 컨트롤의 행 수에서 1 DataGridView 을 뺀 값보다 큽니다.

적용 대상

추가 정보