DataGridViewRow.PaintHeader 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ı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ı 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 olduğunu belirtmek için ; değilse. false
- isLastVisibleRow
- Boolean
true, geçerli satırın içinde özelliğinin olarak ayarlandığı son satır DataGridView olduğunu Visible belirtmek için true; 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ır üst bilgisini boyamak HandledEventArgs.Handledtrueiçin DataGridView.RowPrePaint bu yöntemi çağırır. Daha fazla bilgi için bkz. Paint.