DataGridBoolColumn.Paint 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
繪製資料行。
多載
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
。
備註
繪製資料行中的核取方塊。