DataGridViewRow.PaintCells 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ırdaki hücreleri boyar.
protected public:
virtual void PaintCells(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle rowBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow, System::Windows::Forms::DataGridViewPaintParts paintParts);
protected internal virtual void PaintCells (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle rowBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow, System.Windows.Forms.DataGridViewPaintParts paintParts);
abstract member PaintCells : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * bool * bool * System.Windows.Forms.DataGridViewPaintParts -> unit
override this.PaintCells : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * bool * bool * System.Windows.Forms.DataGridViewPaintParts -> unit
Protected Friend Overridable Sub PaintCells (graphics As Graphics, clipBounds As Rectangle, rowBounds As Rectangle, rowIndex As Integer, rowState As DataGridViewElementStates, isFirstDisplayedRow As Boolean, isLastVisibleRow As Boolean, paintParts As DataGridViewPaintParts)
Parametreler
- graphics
- Graphics
öğesini Graphics boyamak DataGridViewRowiçin kullanılır.
- clipBounds
- Rectangle
Rectangle Boyanması DataGridView gereken alanını temsil eden bir.
- rowBounds
- Rectangle
Rectangle Boyanmakta olan sınırlarını DataGridViewRow içeren.
- 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
true
geçerli satırın içinde görüntülenen DataGridViewilk satır olup olmadığını belirtmek için ; değilse, false
.
- isLastVisibleRow
- Boolean
true
, geçerli satırın içinde özelliğinin Visible olarak ayarlandığı son satır DataGridView olup olmadığını belirtmek için true
; değilse , false
.
- paintParts
- DataGridViewPaintParts
Boyanacak DataGridViewPaintParts hücrelerin bölümlerini gösteren bit düzeyinde bir değer bileşimi.
Özel durumlar
Satır denetime DataGridView eklenmedi.
paintParts
değerlerin bit düzeyinde geçerli bir bileşiminde DataGridViewPaintParts değil.
Açıklamalar
Denetim, olay işleyicisinin DataGridView özelliğini olarak ayarlaması dışında satırdaki hücreleri boyamak HandledEventArgs.Handledtrue
için DataGridView.RowPrePaint bu yöntemi çağırır. Daha fazla bilgi için bkz. Paint.