System::Drawing::Font::GetHeight method

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)
ParameterTypeDescription
graphicsconst SharedPtr<Graphics>&A Graphics object that specifies the measurement units

See Also

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)
ParameterTypeDescription
dpifloatThe vertical resolution of the display device

ReturnValue

The hegiht of the font in pixels

See Also