DataGridViewCellPaintingEventArgs.PaintBackground(Rectangle, Boolean) 메서드

정의

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

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

매개 변수

clipBounds
Rectangle

그릴 영역을 Rectangle 지정하는 A DataGridView 입니다.

cellsPaintSelectionBackground
Boolean

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

예외

RowIndex 가 -1 미만이거나 컨트롤의 행 DataGridView 수보다 크거나 같습니다.

-또는-

ColumnIndex 가 -1 미만이거나 컨트롤의 열 DataGridView 수보다 크거나 같습니다.

적용 대상

추가 정보