This documentation is archived and is not being maintained.

FontStretch.FromOpenTypeStretch Method

Creates a new instance of FontStretch that corresponds to the OpenType usStretchClass value.

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

public static FontStretch FromOpenTypeStretch (
	int stretchValue
)
public static FontStretch FromOpenTypeStretch (
	int stretchValue
)
public static function FromOpenTypeStretch (
	stretchValue : int
) : FontStretch
You cannot use methods in XAML.

Parameters

stretchValue

An integer value between one and nine that corresponds to the usStretchValue definition in the OpenType specification.

Return Value

A new instance of FontStretch.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: