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
。
注解
绘制列中的复选框。