DataGridViewCellPaintingEventArgs Oluşturucu
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
DataGridViewCellPaintingEventArgs sınıfının yeni bir örneğini başlatır.
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);
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
Boyanacak DataGridView hücreyi içeren.
- graphics
- Graphics
öğesini Graphics boyamak DataGridViewCelliçin kullanılır.
- clipBounds
- Rectangle
öğesinin Rectangle yeniden boyanması DataGridView gereken alanını temsil eden bir.
- cellBounds
- Rectangle
Boyanmakta Rectangle olan öğesinin DataGridViewCell sınırlarını içeren bir.
- rowIndex
- Int32
Boyanmakta olan hücrenin satır dizini.
- columnIndex
- Int32
Boyanmakta olan hücrenin sütun dizini.
- cellState
- DataGridViewElementStates
Hücrenin DataGridViewElementStates durumunu belirten değerlerin bit düzeyinde birleşimi.
- value
- Object
Boyanmakta DataGridViewCell olan veri.
- formattedValue
- Object
Boyanmakta olan öğesinin DataGridViewCell biçimlendirilmiş verileri.
- errorText
- String
Hücreyle ilişkili bir hata iletisi.
- cellStyle
- DataGridViewCellStyle
DataGridViewCellStyle Hücre hakkında biçimlendirme ve stil bilgilerini içeren bir.
- advancedBorderStyle
- DataGridViewAdvancedBorderStyle
DataGridViewAdvancedBorderStyle Boyanmakta olan hücre için kenarlık stilleri içeren bir.
- paintParts
- DataGridViewPaintParts
Boyanacak DataGridViewPaintParts parçaları belirten bit düzeyinde değerler birleşimi.
Özel durumlar
dataGridView
, null
değeridir.
-veya-
graphics
, null
değeridir.
-veya-
cellStyle
, null
değeridir.
paintParts
, değerlerin DataGridViewPaintParts bit düzeyinde geçerli bir bileşimi değildir.
Şunlara uygulanır
Ayrıca bkz.
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin