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です。

適用対象

こちらもご覧ください