DataGridViewTopLeftHeaderCell.PaintBorder 方法

定义

绘制当前 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)

参数

graphics
Graphics

用于绘制边框的 Graphics

clipBounds
Rectangle

一个 Rectangle,表示需要重新绘制的 DataGridView 区域。

bounds
Rectangle

包含当前所绘制的边框区域的 Rectangle

cellStyle
DataGridViewCellStyle

包含有关单元格的格式和样式信息的 DataGridViewCellStyle

advancedBorderStyle
DataGridViewAdvancedBorderStyle

包含当前所绘制边框的边框样式的 DataGridViewAdvancedBorderStyle

适用于

另请参阅