Share via


DataGridViewRow.PaintHeader Yöntem

Tanım

Geçerli satırın üst bilgi hücresini boyar.

protected public:
 virtual void PaintHeader(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 PaintHeader (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 PaintHeader : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * bool * bool * System.Windows.Forms.DataGridViewPaintParts -> unit
override this.PaintHeader : 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 PaintHeader (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

truegeçerli satırın içinde görüntülenen DataGridViewilk satır olduğunu belirtmek için ; aksi takdirde . false

isLastVisibleRow
Boolean

truegeçerli satırın, özelliğinin olarak ayarlandığı son satır DataGridView olduğunu belirtmek için true; değilse , falseVisible .

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, DataGridView olay işleyicisinin özelliğini olarak ayarlaması dışında satır üst bilgisini 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.