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의 영역을 지정하는 DataGridView입니다.

cellsPaintSelectionBackground
Boolean

SelectionBackColorInheritedStyle 속성 색으로 지정된 범위의 배경을 그리려면 true이고, BackColorInheritedStyle 속성 색으로 지정된 범위의 배경을 그리려면 false입니다.

예외

RowIndex가 -1보다 작거나 DataGridView 컨트롤의 행 수보다 크거나 같은 경우

또는 ColumnIndex가 -1보다 작거나 DataGridView 컨트롤의 열 수보다 크거나 같은 경우

적용 대상

추가 정보