画面上でフォントを縮小または拡大する度合いを取得または設定します。
名前空間: System.Windows.Controls
アセンブリ: PresentationFramework (presentationframework.dll 内)
XML 名前空間 : http://schemas.microsoft.com/winfx/2006/xaml/presentation

構文
<BindableAttribute(True)> _
Public Property FontStretch As FontStretch
Dim instance As Control
Dim value As FontStretch
value = instance.FontStretch
instance.FontStretch = value
[BindableAttribute(true)]
public FontStretch FontStretch { get; set; }
[BindableAttribute(true)]
public:
property FontStretch FontStretch {
FontStretch get ();
void set (FontStretch value);
}
/** @property */
public FontStretch get_FontStretch ()
/** @property */
public void set_FontStretch (FontStretch value)
public function get FontStretch () : FontStretch
public function set FontStretch (value : FontStretch)
<object FontStretch="FontStretch" .../>
プロパティ値
FontStretches 列挙値。既定値は、
Normal です。

依存プロパティ情報

使用例
コントロールの FontStretch プロパティを設定する方法を次の例に示します。有効な伸縮値については、FontStretches を参照してください。
<Button Name="btn10" FontStretch ="Condensed"
Click="ChangeFontStretch" TabIndex="3">
FontStretch
</Button>
if (btn10.FontStretch == FontStretches.Condensed)
{
btn10.FontStretch = FontStretches.Normal;
btn10.Content = "FontStretch";
}
else
{
btn10.FontStretch = FontStretches.Condensed;
btn10.Content = "Control FontStretch changes from Condensed to Normal.";
}
If (btn10.FontStretch = FontStretches.Condensed) Then
btn10.FontStretch = FontStretches.Normal
btn10.Content = "FontStretch"
Else
btn10.FontStretch = FontStretches.Condensed
btn10.Content = "Control FontStretch changes from Condensed to Normal."
End If

プラットフォーム
Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報
.NET Framework
サポート対象 : 3.0

参照