DataGridViewTextBoxCell.Paint 메서드

정의

현재 DataGridViewCell을 그립니다.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates cellState, System::Object ^ value, System::Object ^ formattedValue, System::String ^ errorText, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, System::Windows::Forms::DataGridViewAdvancedBorderStyle ^ advancedBorderStyle, System::Windows::Forms::DataGridViewPaintParts paintParts);
protected override void Paint (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates cellState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * obj * obj * string * System.Windows.Forms.DataGridViewCellStyle * System.Windows.Forms.DataGridViewAdvancedBorderStyle * System.Windows.Forms.DataGridViewPaintParts -> unit
Protected Overrides Sub Paint (graphics As Graphics, clipBounds As Rectangle, cellBounds As Rectangle, rowIndex As Integer, cellState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

매개 변수

graphics
Graphics

DataGridViewCell을 그리는 데 사용되는 Graphics입니다.

clipBounds
Rectangle

다시 그려야 하는 DataGridView의 영역을 나타내는 Rectangle입니다.

cellBounds
Rectangle

그리고 있는 DataGridViewCell의 범위를 포함하는 Rectangle입니다.

rowIndex
Int32

그리고 있는 셀의 행 인덱스입니다.

cellState
DataGridViewElementStates

셀의 상태를 지정하는 DataGridViewElementStates 값의 비트 조합입니다.

value
Object

그리고 있는 DataGridViewCell의 데이터입니다.

formattedValue
Object

그리고 있는 DataGridViewCell의 형식이 지정된 데이터입니다.

errorText
String

셀과 연결된 오류 메시지입니다.

cellStyle
DataGridViewCellStyle

셀에 대한 형식 및 스타일 정보를 포함하는 DataGridViewCellStyle입니다.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

그릴 셀의 테두리 스타일을 포함하는 DataGridViewAdvancedBorderStyle입니다.

paintParts
DataGridViewPaintParts

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

적용 대상

추가 정보