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
注解
字体拉伸值描述字体窗体从其正常纵横比拉伸的程度,这是为字体中字形指定的原始宽度与高度比率。