共用方式為


TextElement.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

所指定相依性物件上 FontWeight 附加屬性的目前值。

例外狀況

dnull

適用於

另請參閱