语言

DataGridBoolColumn.Paint 方法

定义

绘制列。

重载

Paint(Graphics, Rectangle, CurrencyManager, Int32)

Source:
DataGridBoolColumn.cs
Source:
DataGridBoolColumn.cs

绘制DataGridBoolColumn具有给定GraphicsRectangle的行号和行号。

protected public:
 override void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::CurrencyManager ^ source, int rowNum);
protected internal override void Paint(System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager source, int rowNum);
override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.CurrencyManager * int -> unit
Protected Friend Overrides Sub Paint (g As Graphics, bounds As Rectangle, source As CurrencyManager, rowNum As Integer)

参数

g
Graphics

要 Graphics 绘制到的。

bounds
Rectangle

要绘制到的边界 Rectangle 。

rowNum
Int32

基础数据中引用的行数。

注解

此方法使用传入的图形对象中的背景色绘制背景。

适用于

Paint(Graphics, Rectangle, CurrencyManager, Int32, Boolean)

Source:
DataGridBoolColumn.cs
Source:
DataGridBoolColumn.cs

绘制 DataGridBoolColumn 给定 Graphics、 Rectangle行号和对齐设置。

protected public:
 override void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::CurrencyManager ^ source, int rowNum, bool alignToRight);
protected internal override void Paint(System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager source, int rowNum, bool alignToRight);
override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.CurrencyManager * int * bool -> unit
Protected Friend Overrides Sub Paint (g As Graphics, bounds As Rectangle, source As CurrencyManager, rowNum As Integer, alignToRight As Boolean)

参数

g
Graphics

要 Graphics 绘制到的。

bounds
Rectangle

要绘制到的边界 Rectangle 。

rowNum
Int32

要引用的基础数据表中的行数。

alignToRight
Boolean

一个值,该值指示是否将内容与右侧对齐。 true 如果内容与右侧对齐,则为 。否则为 false。

适用于

Paint(Graphics, Rectangle, CurrencyManager, Int32, Brush, Brush, Boolean)

用 DataGridBoolColumn 给定 Graphics的、 Rectangle行号 Brush和 Color。

protected public:
 override void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::CurrencyManager ^ source, int rowNum, System::Drawing::Brush ^ backBrush, System::Drawing::Brush ^ foreBrush, bool alignToRight);
protected internal override void Paint(System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Brush backBrush, System.Drawing.Brush foreBrush, bool alignToRight);
override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.CurrencyManager * int * System.Drawing.Brush * System.Drawing.Brush * bool -> unit
Protected Friend Overrides Sub Paint (g As Graphics, bounds As Rectangle, source As CurrencyManager, rowNum As Integer, backBrush As Brush, foreBrush As Brush, alignToRight As Boolean)

参数

g
Graphics

要 Graphics 绘制到的。

bounds
Rectangle

要绘制到的边界 Rectangle 。

rowNum
Int32

要引用的基础数据表中的行数。

backBrush
Brush

用于绘制背景色的 A Brush 。

foreBrush
Brush

用于绘制前景颜色的 A Color 。

alignToRight
Boolean

一个值,该值指示是否将内容与右侧对齐。 true 如果内容与右侧对齐,则为 。否则为 false。

注解

绘制列中的复选框。

另请参阅

适用于