Retrieves the fitted height of the cell in pixels.
Parameters
- mode
- An AutoHeightMode value indicating in regards to what factors the fitted height of the cell will be calculated.
- cellDisplayWidth
- A value, in pixels, representing the display width of the cell. The display width of the cell is its width without the borders.
- graphics
- The System.Drawing.Graphics object used to paint the cell.
- printing
- true if the cell is being printed; false otherwise.
Return Value
The fitted height of the cell in pixels. If is set to
AutoHeightMode.AllContent and the value of the cell is a null reference (
Nothing in Visual Basic), DBNull or
System.String.Empty, then the equivalent of calling GetFittedHeight with
AutoHeightMode.Minimum is returned.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2