DataGridViewCellPaintingEventArgs 생성자

정의

DataGridViewCellPaintingEventArgs 클래스의 새 인스턴스를 초기화합니다.

public:
 DataGridViewCellPaintingEventArgs(System::Windows::Forms::DataGridView ^ dataGridView, System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, int columnIndex, 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);
public DataGridViewCellPaintingEventArgs (System.Windows.Forms.DataGridView dataGridView, System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, int columnIndex, 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);
new System.Windows.Forms.DataGridViewCellPaintingEventArgs : System.Windows.Forms.DataGridView * System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * int * System.Windows.Forms.DataGridViewElementStates * obj * obj * string * System.Windows.Forms.DataGridViewCellStyle * System.Windows.Forms.DataGridViewAdvancedBorderStyle * System.Windows.Forms.DataGridViewPaintParts -> System.Windows.Forms.DataGridViewCellPaintingEventArgs
Public Sub New (dataGridView As DataGridView, graphics As Graphics, clipBounds As Rectangle, cellBounds As Rectangle, rowIndex As Integer, columnIndex As Integer, cellState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

매개 변수

dataGridView
DataGridView

그릴 셀을 포함하는 DataGridView입니다.

graphics
Graphics

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

clipBounds
Rectangle

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

cellBounds
Rectangle

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

rowIndex
Int32

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

columnIndex
Int32

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

cellState
DataGridViewElementStates

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

value
Object

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

formattedValue
Object

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

errorText
String

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

cellStyle
DataGridViewCellStyle

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

advancedBorderStyle
DataGridViewAdvancedBorderStyle

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

paintParts
DataGridViewPaintParts

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

예외

dataGridView이(가) null인 경우

또는 graphics이(가) null인 경우

또는 cellStyle이(가) null인 경우

paintPartsDataGridViewPaintParts 값의 유효한 비트 조합이 아닙니다.

적용 대상

추가 정보