TextElement.FontWeight 属性

定义

获取或设置要从此元素中内容的字体系列中选择的顶级字体粗细。

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

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

属性值

FontWeights 属性值之一,指定字体粗细。 默认值为 Normal

适用于