TextBlock.FontWeight 属性

定义

获取或设置 TextBlock 的顶级字体粗细。

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

void FontWeight(FontWeight value);
public FontWeight FontWeight { get; set; }
var fontWeight = textBlock.fontWeight;
textBlock.fontWeight = fontWeight;
Public Property FontWeight As FontWeight
<TextBlock FontWeight="fontWeightsMemberName"/>

属性值

请求的字体粗细,它是从 FontWeights 属性值之一获取的 FontWeight 。 默认值为 Normal

适用于