DataGridViewTextBoxCell.Paint Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Melukis arus 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);
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)
Parameter
- graphics
- Graphics
Yang Graphics digunakan untuk melukis DataGridViewCell.
- clipBounds
- Rectangle
Rectangle yang mewakili area DataGridView yang perlu dicat ulang.
- cellBounds
- Rectangle
Yang Rectangle berisi batas-batas DataGridViewCell yang sedang dicat.
- rowIndex
- Int32
Indeks baris sel yang sedang dicat.
- cellState
- DataGridViewElementStates
Kombinasi DataGridViewElementStates nilai bitwise yang menentukan status sel.
- value
- Object
Data yang DataGridViewCell sedang dicat.
- formattedValue
- Object
Data yang diformat DataGridViewCell yang sedang dicat.
- errorText
- String
Pesan kesalahan yang terkait dengan sel.
- cellStyle
- DataGridViewCellStyle
Yang DataGridViewCellStyle berisi informasi pemformatan dan gaya tentang sel.
- advancedBorderStyle
- DataGridViewAdvancedBorderStyle
Yang DataGridViewAdvancedBorderStyle berisi gaya batas untuk sel yang sedang dicat.
- paintParts
- DataGridViewPaintParts
Kombinasi bitwise dari DataGridViewPaintParts nilai yang menentukan bagian sel mana yang perlu dicat.