This documentation is archived and is not being maintained.

DataGridViewCell.GetContentBounds Method

Returns the bounding rectangle that encloses the cell's content area.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method GetContentBounds(Int32) Returns the bounding rectangle that encloses the cell's content area using a default Graphics and cell style currently in effect for the cell.
Protected method GetContentBounds(Graphics, DataGridViewCellStyle, Int32) Returns the bounding rectangle that encloses the cell's content area, which is calculated using the specified Graphics and cell style.
Top
Show: