共用方式為


Typeface.Stretch 屬性

定義

取得 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

備註

字型延展值描述字型表單從其一般外觀比例延伸的程度,這是為字型中圖像指定的原始寬度與高度比例。

適用於