System.Windows.Forms.DataGridViewCellPaintingEventArgs Members

The members of System.Windows.Forms.DataGridViewCellPaintingEventArgs are listed below.

See Also: Inherited members from System.ComponentModel.HandledEventArgs

Public Constructors

Public Properties

[read-only]
AdvancedBorderStyleDataGridViewAdvancedBorderStyle.

Gets the border style of the current System.Windows.Forms.DataGridViewCell.

[read-only]
CellBoundsSystem.Drawing.Rectangle.

Get the bounds of the current System.Windows.Forms.DataGridViewCell.

[read-only]
CellStyleDataGridViewCellStyle.

Gets the cell style of the current System.Windows.Forms.DataGridViewCell.

[read-only]
ClipBoundsSystem.Drawing.Rectangle.

Gets the area of the System.Windows.Forms.DataGridView that needs to be repainted.

[read-only]
ColumnIndexint.

Gets the column index of the current System.Windows.Forms.DataGridViewCell.

[read-only]
ErrorTextstring.

Gets a string that represents an error message for the current System.Windows.Forms.DataGridViewCell.

[read-only]
FormattedValueobject.

Gets the formatted value of the current System.Windows.Forms.DataGridViewCell.

[read-only]
GraphicsSystem.Drawing.Graphics.

Gets the System.Drawing.Graphics used to paint the current System.Windows.Forms.DataGridViewCell.

[read-only]
PaintPartsDataGridViewPaintParts.

The cell parts that are to be painted.

[read-only]
RowIndexint.

Gets the row index of the current System.Windows.Forms.DataGridViewCell.

[read-only]
StateDataGridViewElementStates.

Gets the state of the current System.Windows.Forms.DataGridViewCell.

[read-only]
Valueobject.

Gets the value of the current System.Windows.Forms.DataGridViewCell.

Public Methods

Paint(System.Drawing.Rectangle, DataGridViewPaintParts)

Paints the specified parts of the cell for the area in the specified bounds.

PaintBackground(System.Drawing.Rectangle, bool)

Paints the cell background for the area in the specified bounds.

PaintContent(System.Drawing.Rectangle)

Paints the cell content for the area in the specified bounds.