DataGridViewCellPaintingEventArgs(DataGridView, Graphics, Rectangle, Rectangle, Int32, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) Oluşturucu

Tanım

DataGridViewCellPaintingEventArgs sınıfının yeni bir örneğini başlatır.Initializes a new instance of the DataGridViewCellPaintingEventArgs class.

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)

Parametreler

dataGridView
DataGridView

DataGridViewBoyanmış olan hücreyi içeren.The DataGridView that contains the cell to be painted.

graphics
Graphics

' İ Graphics boyamak için kullanılır DataGridViewCell .The Graphics used to paint the DataGridViewCell.

clipBounds
Rectangle

Yeniden Rectangle boyanması gereken öğesinin alanını temsil eden bir DataGridView .A Rectangle that represents the area of the DataGridView that needs to be repainted.

cellBounds
Rectangle

Boyanmış olan ' Rectangle nin sınırlarını içeren bir DataGridViewCell .A Rectangle that contains the bounds of the DataGridViewCell that is being painted.

rowIndex
Int32

Boyanmış hücrenin satır dizini.The row index of the cell that is being painted.

columnIndex
Int32

Boyanmış hücrenin sütun dizini.The column index of the cell that is being painted.

cellState
DataGridViewElementStates

DataGridViewElementStatesHücrenin durumunu belirten değerlerin bit tabanlı birleşimi.A bitwise combination of the DataGridViewElementStates values that specifies the state of the cell.

value
Object

Boyanmış olan verileri DataGridViewCell .The data of the DataGridViewCell that is being painted.

formattedValue
Object

Boyanmış olan biçimli veri DataGridViewCell .The formatted data of the DataGridViewCell that is being painted.

errorText
String

Hücreyle ilişkili bir hata iletisi.An error message that is associated with the cell.

cellStyle
DataGridViewCellStyle

DataGridViewCellStyleBu, hücreyle ilgili biçimlendirme ve stil bilgilerini içeren bir.A DataGridViewCellStyle that contains formatting and style information about the cell.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

DataGridViewAdvancedBorderStyleBoyanmış olan hücre için kenarlık stilleri içeren bir.A DataGridViewAdvancedBorderStyle that contains border styles for the cell that is being painted.

paintParts
DataGridViewPaintParts

DataGridViewPaintPartsBoyanacak parçaları belirten değerlerin bit düzeyinde birleşimi.A bitwise combination of DataGridViewPaintParts values specifying the parts to paint.

Özel durumlar

dataGridView, null değeridir.dataGridView is null.

-veya--or- graphics, null değeridir.graphics is null.

-veya--or- cellStyle, null değeridir.cellStyle is null.

paintParts, geçerli bir bit düzeyinde değer birleşimi değil DataGridViewPaintParts .paintParts is not a valid bitwise combination of DataGridViewPaintParts values.

Şunlara uygulanır

Ayrıca bkz.