Share via


DataGridViewCellPaintingEventArgs.Paint 메서드

정의

지정된 범위의 영역에 지정된 셀 부분을 그립니다.

public:
 void Paint(System::Drawing::Rectangle clipBounds, System::Windows::Forms::DataGridViewPaintParts paintParts);
public void Paint (System.Drawing.Rectangle clipBounds, System.Windows.Forms.DataGridViewPaintParts paintParts);
member this.Paint : System.Drawing.Rectangle * System.Windows.Forms.DataGridViewPaintParts -> unit
Public Sub Paint (clipBounds As Rectangle, paintParts As DataGridViewPaintParts)

매개 변수

clipBounds
Rectangle

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

paintParts
DataGridViewPaintParts

그릴 부분을 지정하는 DataGridViewPaintParts 값의 비트 조합입니다.

예외

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

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

적용 대상

추가 정보