語言

DataGridBoolColumn.Paint 方法

定義

畫了一根柱子。

多載

Paint(Graphics, Rectangle, CurrencyManager, Int32)

來源:
DataGridBoolColumn.cs
來源:
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);
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)

來源:
DataGridBoolColumn.cs
來源:
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 。

source
CurrencyManager

那個 CurrencyManager 專欄。

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 。

source
CurrencyManager

那個 CurrencyManager 專欄。

rowNum
Int32

指被參考的底層資料表中該列的數量。

backBrush
Brush

Brush A用來上色背景色。

foreBrush
Brush

Color A用來繪製前景色。

alignToRight
Boolean

一個表示是否要將內容對齊到右側的值。 true 若內容對齊於右側,否則 false。

備註

在欄位裡勾選那個勾選框。

另請參閱

適用於