DataGridViewCellPaintingEventArgs::CellBounds Property

 

Get the bounds of the current DataGridViewCell.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property Rectangle CellBounds {
	Rectangle get();
}

Property Value

Type: System.Drawing::Rectangle

A Rectangle that represents the bounds of the current DataGridViewCell.

The following code example illustrates the use of this property. For more information, see How to: Customize the Appearance of Cells in the Windows Forms DataGridView Control.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: