Microsoft SDK for Java

Label.getPreferredHeight

Retrieves the preferred height for the label.

Syntax

public final int getPreferredHeight()

Return Value

Returns the height, in pixels, of a single line of text displayed in the current font.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.