Typeface.Stretch 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
得到 的拉伸值。Typeface 拉伸值決定字體在顯示時是展開還是壓縮。
public:
property System::Windows::FontStretch Stretch { System::Windows::FontStretch get(); };
public System.Windows.FontStretch Stretch { get; }
member this.Stretch : System.Windows.FontStretch
Public ReadOnly Property Stretch As FontStretch
屬性值
一個 FontStretch 代表字體拉伸值的值。
範例
// Get the font stretch value for the typeface.
FontStretch fontStretch = typeface.Stretch;
if (fontStretch == FontStretches.Condensed)
{
// Perform action based on condensed stretch value.
}
' Get the font stretch value for the typeface.
Dim fontStretch As FontStretch = typeface.Stretch
If fontStretch = FontStretches.Condensed Then
' Perform action based on condensed stretch value.
End If
備註
字型拉伸值描述字型從其正常寬高比(即字型中原本指定的寬高比)被拉伸的程度。