이 설명서는 보관되지만 유지 되지 않습니다.

Control.FontStretch 속성

Gets or sets the degree to which a font is condensed or expanded on the screen.

네임스페이스: System.Windows.Controls
어셈블리: PresentationFramework(presentationframework.dll)
XML 네임스페이스:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[BindableAttribute(true)] 
public FontStretch FontStretch { get; set; }
/** @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" .../>

속성 값

A FontStretches enumeration value. The default value is Normal.

Identifier Field

FontStretchProperty

Metadata Flags

None

The following example shows how to set the font stretch property of a control. For possible stretch values, see 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.";
}

Microsoft .NET Framework 3.0은 Windows Vista, Microsoft Windows XP SP2 및 Windows Server 2003 SP1에서 지원됩니다.

.NET Framework

3.0에서 지원
표시: