Typeface.Stretch Property


Gets the stretch value for the Typeface. The stretch value determines whether a typeface is expanded or condensed when it is displayed.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public FontStretch Stretch { get; }

Property Value

Type: System.Windows.FontStretch

A FontStretch value that represents the stretch value for the typeface.

A font stretch value describes the degree to which a font form is stretched from its normal aspect ratio, which is the original width to height ratio specified for the glyphs in the font.

// Get the font stretch value for the typeface.
FontStretch fontStretch = typeface.Stretch;

if (fontStretch == FontStretches.Condensed)
    // Perform action based on condensed stretch value.

.NET Framework
Available since 3.0
Return to top