Partager via


TextField.GetFontHeight(ShapeElement) Method

Definition

Gets the line spacing of this font (i.e., the height of a line of text) in world units. Line spacing is the ascent + the descent + some recommended extra. The ascent is the height of the character above the baseline, and the descent is the height of the character below the baseline. The extra is below the descent.

public:
 virtual float GetFontHeight(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape);
public virtual float GetFontHeight (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape);
abstract member GetFontHeight : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> single
override this.GetFontHeight : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> single
Public Overridable Function GetFontHeight (parentShape As ShapeElement) As Single

Parameters

parentShape
ShapeElement

Returns

Applies to