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

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft