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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft