Редагувати

Поділитися через


DataGridBoolColumn.Paint Method

Definition

Paints a column.

Overloads

Paint(Graphics, Rectangle, CurrencyManager, Int32)

Draws the DataGridBoolColumn with the given Graphics, Rectangle and row number.

Paint(Graphics, Rectangle, CurrencyManager, Int32, Boolean)

Draws the DataGridBoolColumn with the given Graphics, Rectangle, row number, and alignment settings.

Paint(Graphics, Rectangle, CurrencyManager, Int32, Brush, Brush, Boolean)

Draws the DataGridBoolColumn with the given Graphics, Rectangle, row number, Brush, and Color.

Paint(Graphics, Rectangle, CurrencyManager, Int32)

Draws the DataGridBoolColumn with the given Graphics, Rectangle and row number.

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)

Parameters

g
Graphics

The Graphics to draw to.

bounds
Rectangle

The bounding Rectangle to paint into.

source
CurrencyManager

The CurrencyManager of the column.

rowNum
Int32

The number of the row referred to in the underlying data.

Remarks

This method paints the background with the background color in the graphics object passed in.

Applies to

Paint(Graphics, Rectangle, CurrencyManager, Int32, Boolean)

Draws the DataGridBoolColumn with the given Graphics, Rectangle, row number, and alignment settings.

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)

Parameters

g
Graphics

The Graphics to draw to.

bounds
Rectangle

The bounding Rectangle to paint into.

source
CurrencyManager

The CurrencyManager of the column.

rowNum
Int32

The number of the row in the underlying data table being referred to.

alignToRight
Boolean

A value indicating whether to align the content to the right. true if the content is aligned to the right, otherwise, false.

Applies to

Paint(Graphics, Rectangle, CurrencyManager, Int32, Brush, Brush, Boolean)

Draws the DataGridBoolColumn with the given Graphics, Rectangle, row number, Brush, and 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)

Parameters

g
Graphics

The Graphics to draw to.

bounds
Rectangle

The bounding Rectangle to paint into.

source
CurrencyManager

The CurrencyManager of the column.

rowNum
Int32

The number of the row in the underlying data table being referred to.

backBrush
Brush

A Brush used to paint the background color.

foreBrush
Brush

A Color used to paint the foreground color.

alignToRight
Boolean

A value indicating whether to align the content to the right. true if the content is aligned to the right, otherwise, false.

Remarks

Paints the check box in the column.

See also

Applies to