Aracılığıyla paylaş


DataGridViewRow.PaintCells Yöntem

Tanım

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ı 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

paintParts
DataGridViewPaintParts

Boyanacak DataGridViewPaintParts hücrelerin parçalarını gösteren bit düzeyinde değerler birleş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.Handledtrueiçin DataGridView.RowPrePaint bu yöntemi çağırır. Daha fazla bilgi için bkz. Paint.

Şunlara uygulanır

Ayrıca bkz.