DataGridBoolColumn.Paint 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
畫了一根柱子。
多載
| 名稱 | Description |
|---|---|
| Paint(Graphics, Rectangle, CurrencyManager, Int32) |
繪製 DataGridBoolColumn 給定 Graphics的 , Rectangle 並以列號計算。 |
| Paint(Graphics, Rectangle, CurrencyManager, Int32, Boolean) |
繪製 , DataGridBoolColumn 並依照給定 Graphics的 、 Rectangle、 行數和對齊設定。 |
| Paint(Graphics, Rectangle, CurrencyManager, Int32, Brush, Brush, Boolean) |
繪製 , DataGridBoolColumn 給定 Graphics的 、 Rectangle、 列號 Brush、 Color。 |
Paint(Graphics, Rectangle, CurrencyManager, Int32)
繪製 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)
參數
- source
- CurrencyManager
那個 CurrencyManager 專欄。
- rowNum
- Int32
底層資料中所提及的列數。
備註
此方法會將傳入的圖形物件背景顏色繪製成背景。
適用於
Paint(Graphics, Rectangle, CurrencyManager, Int32, Boolean)
繪製 , 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)
參數
- 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)
參數
- source
- CurrencyManager
那個 CurrencyManager 專欄。
- rowNum
- Int32
指被參考的底層資料表中該列的數量。
- alignToRight
- Boolean
一個表示是否要將內容對齊到右側的值。
true 若內容對齊於右側,否則 false。
備註
在欄位裡勾選那個勾選框。