DataGridViewColumnHeaderCell.Paint 메서드

정의

현재 DataGridViewColumnHeaderCell를 그립니다.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates dataGridViewElementState, 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 dataGridViewElementState, object value, object formattedValue, 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 dataGridViewElementState, 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, dataGridViewElementState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

매개 변수

graphics
Graphics

Graphics 셀을 그리는 데 사용됩니다.

clipBounds
Rectangle

다시 칠해야 하는 영역을 Rectangle 나타내는 A DataGridView 입니다.

cellBounds
Rectangle

그려지는 셀의 경계를 포함하는 A Rectangle 입니다.

rowIndex
Int32

그릴 셀의 행 인덱스입니다.

dataGridViewElementState
DataGridViewElementStates

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

value
Object

그릴 셀의 데이터입니다.

formattedValue
Object

그리는 셀의 서식이 지정된 데이터입니다.

errorText
String

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

cellStyle
DataGridViewCellStyle

DataGridViewCellStyle 셀에 대한 서식 및 스타일 정보가 들어 있는 A입니다.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

DataGridViewAdvancedBorderStyle 그리는 셀의 테두리 스타일이 들어 있는 A입니다.

paintParts
DataGridViewPaintParts

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

적용 대상