クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
.NET 開発
以前のバージョン
.NET Framework SDK 2.0
System.Windows.Controls
Control クラス
Control プロパティ
 FontStretch プロパティ
すべて縮小/すべて展開 すべて縮小
このページは次のバージョンについて記述しています。
Microsoft Visual Studio 2005/.NET Framework 2.0

その他のバージョンについては、以下の情報を参照してください。
Control.FontStretch プロパティ
画面上でフォントを縮小または拡大する度合いを取得または設定します。

名前空間: System.Windows.Controls
アセンブリ: PresentationFramework (presentationframework.dll 内)
XML 名前空間 :  http://schemas.microsoft.com/winfx/2006/xaml/presentation

Visual Basic (宣言)
<BindableAttribute(True)> _
Public Property FontStretch As FontStretch
Visual Basic (使用法)
Dim instance As Control
Dim value As FontStretch

value = instance.FontStretch

instance.FontStretch = value
C#
[BindableAttribute(true)] 
public FontStretch FontStretch { get; set; }
C++
[BindableAttribute(true)] 
public:
property FontStretch FontStretch {
	FontStretch get ();
	void set (FontStretch value);
}
J#
/** @property */
public FontStretch get_FontStretch ()

/** @property */
public void set_FontStretch (FontStretch value)
JScript
public function get FontStretch () : FontStretch

public function set FontStretch (value : FontStretch)
XAML 属性の使用
<object FontStretch="FontStretch" .../>

プロパティ値

FontStretches 列挙値。既定値は、Normal です。

識別子フィールド

FontStretchProperty

メタデータ フラグ

None

コントロールの FontStretch プロパティを設定する方法を次の例に示します。有効な伸縮値については、FontStretches を参照してください。

XAML
<Button Name="btn10" FontStretch ="Condensed" 
        Click="ChangeFontStretch" TabIndex="3">
  FontStretch
</Button>
C#
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.";
}
Visual Basic
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
コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2009 Microsoft Corporation. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker