Edit

Bagikan melalui


DataGridBoolColumn.GetPreferredHeight(Graphics, Object) Method

Definition

Gets the height used when resizing columns.

protected public:
 override int GetPreferredHeight(System::Drawing::Graphics ^ g, System::Object ^ value);
protected internal override int GetPreferredHeight (System.Drawing.Graphics g, object value);
override this.GetPreferredHeight : System.Drawing.Graphics * obj -> int
Protected Friend Overrides Function GetPreferredHeight (g As Graphics, value As Object) As Integer

Parameters

g
Graphics

A Graphics that draws on the screen.

value
Object

An Object that contains the value to be drawn to the screen.

Returns

The height used to automatically resize cells in a column.

Applies to

See also