System.Windows.Forms.DataGrid.GetCurrentCellBounds Method

Gets a System.Drawing.Rectangle that specifies the four corners of the selected cell.

Syntax

public System.Drawing.Rectangle GetCurrentCellBounds ()

Returns

A System.Drawing.Rectangle that defines the current cell's corners.

Remarks

To retrieve the cell bounds for a cell other than the current cell, use erload:System.Windows.Forms.DataGrid.GetCellBounds.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0