Share via


DataGridViewTopLeftHeaderCell.PaintBorder Metoda

Definice

Vykreslí ohraničení aktuálního DataGridViewCell.

protected:
 override void PaintBorder(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle bounds, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, System::Windows::Forms::DataGridViewAdvancedBorderStyle ^ advancedBorderStyle);
protected override void PaintBorder (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle bounds, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle);
override this.PaintBorder : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Windows.Forms.DataGridViewCellStyle * System.Windows.Forms.DataGridViewAdvancedBorderStyle -> unit
Protected Overrides Sub PaintBorder (graphics As Graphics, clipBounds As Rectangle, bounds As Rectangle, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle)

Parametry

graphics
Graphics

Používá Graphics se k malování ohraničení.

clipBounds
Rectangle

A Rectangle , který představuje oblast objektu DataGridView , který je potřeba překreslovat.

bounds
Rectangle

A Rectangle obsahující oblast ohraničení, které je malováno.

cellStyle
DataGridViewCellStyle

A DataGridViewCellStyle , který obsahuje informace o formátování a stylu buňky.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

A DataGridViewAdvancedBorderStyle , který obsahuje styly ohraničení ohraničení, které je malováno.

Platí pro

Viz také