共用方式為


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

備註

繪製資料行中的核取方塊。

另請參閱

適用於