Bagikan melalui


TextField.GetFontHeight Method

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.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Overridable Function GetFontHeight ( _
    parentShape As ShapeElement _
) As Single
public virtual float GetFontHeight(
    ShapeElement parentShape
)
public:
virtual float GetFontHeight(
    ShapeElement^ parentShape
)
abstract GetFontHeight : 
        parentShape:ShapeElement -> float32  
override GetFontHeight : 
        parentShape:ShapeElement -> float32
public function GetFontHeight(
    parentShape : ShapeElement
) : float

Parameters

Return Value

Type: Single

.NET Framework Security

See Also

Reference

TextField Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace