System.Windows.Forms.DataGridTextBoxColumn.GetPreferredHeight Method

Gets the height to be used in for automatically resizing columns.

Syntax

protected override int GetPreferredHeight (System.Drawing.Graphics g, object value)

Parameters

g
A System.Drawing.Graphics object used to draw shapes on the screen.
value
The value to draw.

Returns

The height the cells automatically resize to.

Remarks

Documentation for this section has not yet been entered.

Requirements

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