TextBlock.GetFontWeight(DependencyObject) 方法

定义

返回指定依赖对象的附加属性的值 FontWeight

public:
 static System::Windows::FontWeight GetFontWeight(System::Windows::DependencyObject ^ element);
public static System.Windows.FontWeight GetFontWeight(System.Windows.DependencyObject element);
static member GetFontWeight : System.Windows.DependencyObject -> System.Windows.FontWeight
Public Shared Function GetFontWeight (element As DependencyObject) As FontWeight

参数

element
DependencyObject

要从中检索附加属性值的 FontWeight 依赖项对象。

返回

指定依赖对象的附加属性的 FontWeight 当前值。

例外

elementnull

适用于

另请参阅