DataGridBoolColumn.Paint 方法

定义

绘制列。

重载

Paint(Graphics, Rectangle, CurrencyManager, Int32)

通过指定的 DataGridBoolColumnGraphics 和行号绘制 Rectangle

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

使用给定的 DataGridBoolColumnGraphics、行号和对齐方式设置绘制 Rectangle

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

使用给定的 DataGridBoolColumnGraphics、行号、RectangleBrush 绘制 Color

Paint(Graphics, Rectangle, CurrencyManager, Int32)

通过指定的 DataGridBoolColumnGraphics 和行号绘制 Rectangle

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

source
CurrencyManager

列的 CurrencyManager

rowNum
Int32

在基础数据中引用的行号。

注解

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

适用于

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

使用给定的 DataGridBoolColumnGraphics、行号和对齐方式设置绘制 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

source
CurrencyManager

列的 CurrencyManager

rowNum
Int32

所引用的基础数据表中的行号。

alignToRight
Boolean

一个值,它指示内容是否为右对齐。 如果内容为右对齐,则为 true;否则为 false

适用于

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

使用给定的 DataGridBoolColumnGraphics、行号、RectangleBrush 绘制 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

source
CurrencyManager

列的 CurrencyManager

rowNum
Int32

所引用的基础数据表中的行号。

backBrush
Brush

用于绘制背景色的 Brush

foreBrush
Brush

用于绘制前景色的 Color

alignToRight
Boolean

一个值,它指示内容是否为右对齐。 如果内容为右对齐,则为 true;否则为 false

注解

绘制列中的复选框。

另请参阅

适用于