Share via


RichTextBlock.FontStretch 属性

定义

获取或设置此元素中文本内容的字体拉伸。

public:
 property FontStretch FontStretch { FontStretch get(); void set(FontStretch value); };
FontStretch FontStretch();

void FontStretch(FontStretch value);
public FontStretch FontStretch { get; set; }
var fontStretch = richTextBlock.fontStretch;
richTextBlock.fontStretch = fontStretch;
Public Property FontStretch As FontStretch
<RichTextBlock FontStretch="fontStretchMemberName"/>

属性值

请求的字体拉伸,作为 FontStretch 常量。 默认值为 Normal。

注解

设置 FontStretch 属性以指定要用于 RichTextBlock 中所有文本的默认字体拉伸。 可以通过设置 TextElement.FontStretch 属性替代 RichTextBlock 中特定文本元素的此值。

适用于

另请参阅