GetHeight()

Font::GetHeight(const SharedPtr<Graphics>&) method

Returns the line spacing of the font represented by the current object, in the current unit of a specified Graphics object.

float System::Drawing::Font::GetHeight(const SharedPtr<Graphics> &graphics)

Arguments

ParameterTypeDescription
graphicsconst SharedPtr<Graphics>&A Graphics object that specifies the measurement units

Font::GetHeight(float) method

Returns the height of the font represented by the current object when drawn to a display device with the specified vertical resolution.

float System::Drawing::Font::GetHeight(float dpi=DEFAULT_FONT_OPERATIONS_DPI)

Arguments

ParameterTypeDescription
dpifloatThe vertical resolution of the display device

Return Value

The hegiht of the font in pixels

See Also