Describes the degree to which a font has been stretched compared to the normal aspect ratio of that font.
Namespace:
System.Windows
Assembly:
PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

Syntax
<TypeConverterAttribute(GetType(FontStretchConverter))> _
<LocalizabilityAttribute(LocalizationCategory.None)> _
Public Structure FontStretch _
Implements IFormattable
[TypeConverterAttribute(typeof(FontStretchConverter))]
[LocalizabilityAttribute(LocalizationCategory.None)]
public struct FontStretch : IFormattable
[TypeConverterAttribute(typeof(FontStretchConverter))]
[LocalizabilityAttribute(LocalizationCategory::None)]
public value class FontStretch : IFormattable
[<Sealed>]
[<TypeConverterAttribute(typeof(FontStretchConverter))>]
[<LocalizabilityAttribute(LocalizationCategory.None)>]
type FontStretch =
struct
interface IFormattable
end
<object fontStretchesProperty="fontStretchesValue"/>
XAML Values
- fontStretchesValue
A FontStretches value expressed as the name string, such as "Condensed", "Normal", or "Expanded".
The FontStretch type exposes the following members.

Methods

Explicit Interface Implementations

Remarks
A font stretch 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.
The FontStretches values correspond to the usWidthClass definition in the OpenType specification. The usWidthClass represents an integer value between 1 and 9—lower values indicate narrower widths; higher values indicate wider widths.
For more information on the OpenType usWidthClass value, see the "Font File Tables" section of the OpenType specification.

Version Information
.NET Framework
Supported in: 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public
static (
Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also