DataGridViewTopLeftHeaderCell::PaintBorder Method (Graphics^, Rectangle, Rectangle, DataGridViewCellStyle^, DataGridViewAdvancedBorderStyle^)
.NET Framework (current version)
Paints the border of the current DataGridViewCell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
protected: virtual void PaintBorder( Graphics^ graphics, Rectangle clipBounds, Rectangle bounds, DataGridViewCellStyle^ cellStyle, DataGridViewAdvancedBorderStyle^ advancedBorderStyle ) override
Parameters
- graphics
-
Type:
System.Drawing::Graphics^
The Graphics used to paint the border.
- clipBounds
-
Type:
System.Drawing::Rectangle
A Rectangle that represents the area of the DataGridView that needs to be repainted.
- bounds
-
Type:
System.Drawing::Rectangle
A Rectangle that contains the area of the border that is being painted.
- cellStyle
-
Type:
System.Windows.Forms::DataGridViewCellStyle^
A DataGridViewCellStyle that contains formatting and style information about the cell.
- advancedBorderStyle
-
Type:
System.Windows.Forms::DataGridViewAdvancedBorderStyle^
A DataGridViewAdvancedBorderStyle that contains border styles of the border that is being painted.
.NET Framework
Available since 2.0
Available since 2.0
Show: