DataGridViewRow.Paint Yöntem
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.
Geçerli satırı boyar.
protected public:
virtual void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle rowBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow);
protected internal virtual void Paint(System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle rowBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow);
abstract member Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * bool * bool -> unit
override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * bool * bool -> unit
Protected Friend Overridable Sub Paint (graphics As Graphics, clipBounds As Rectangle, rowBounds As Rectangle, rowIndex As Integer, rowState As DataGridViewElementStates, isFirstDisplayedRow As Boolean, isLastVisibleRow As Boolean)
Parametreler
- graphics
- Graphics
öğesini Graphics boyamak DataGridViewRowiçin kullanılır.
- clipBounds
- Rectangle
Rectangle Boyanması gereken alanını DataGridView temsil eden bir.
- rowBounds
- Rectangle
Rectangle Boyanmakta olan öğesinin DataGridViewRow sınırlarını içeren bir.
- rowIndex
- Int32
Boyanmakta olan hücrenin satır dizini.
- rowState
- DataGridViewElementStates
Satırın DataGridViewElementStates durumunu belirten bit düzeyinde değerler birleşimi.
- isFirstDisplayedRow
- Boolean
truegeçerli satırın içinde görüntülenen DataGridViewilk satır olup olmadığını belirtmek için ; değilse. false
- isLastVisibleRow
- Boolean
truegeçerli satırın içinde özelliğinin olarak ayarlandığı son satır DataGridViewVisible olup olmadığını belirtmek içintrue; aksi takdirde. false
Özel durumlar
Satır denetime DataGridView eklenmedi.
-veya-
Satır bir DataGridView denetimdedir ve paylaşılan bir satırdır.
Satır bir DataGridView denetimdedir ve rowIndex denetimdeki satır sayısından eksi bir veya sıfırdan küçüktür.
Açıklamalar
Denetim, DataGridView satırı boyamak için bu yöntemi çağırır.
Bu yöntemin çağrılması olayı tetikler DataGridView.RowPrePaint . Olay işleyicisi özelliğini olarak ayarlamazsaHandledEventArgs.Handled, bu yöntem ve PaintCells yöntemlerini de çağırır PaintHeader ve olayı tetiklerDataGridView.RowPostPaint.true
Şunlara uygulanır
Ayrıca bkz.
- DataGridView
- RowPrePaint
- RowPostPaint
- PaintHeader(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Boolean, Boolean, DataGridViewPaintParts)
- PaintCells(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Boolean, Boolean, DataGridViewPaintParts)
- Windows Forms DataGridView Denetimini Ölçeklendirmek için En İyi Yöntemler