語言

TextElement.SetFontWeight(DependencyObject, FontWeight) 方法

定義

設定指定相依物件附加屬性的值 FontWeight 。

public:
 static void SetFontWeight(System::Windows::DependencyObject ^ element, System::Windows::FontWeight value);
public static void SetFontWeight(System.Windows.DependencyObject element, System.Windows.FontWeight value);
static member SetFontWeight : System.Windows.DependencyObject * System.Windows.FontWeight -> unit
Public Shared Sub SetFontWeight (element As DependencyObject, value As FontWeight)

參數

element
DependencyObject

是用來設定屬性值 FontWeight 的相依物件。

value
FontWeight

設定屬性的新值。

例外狀況

d 是 null。

適用於

另請參閱