TextBlock.GetFontStyle(DependencyObject) メソッド

定義

指定した依存関係オブジェクトの FontStyle 添付プロパティの値を返します。

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

パラメーター

element
DependencyObject

FontStyle 添付プロパティの値を取得する対象の依存関係オブジェクト。

戻り値

指定した依存関係オブジェクトの FontStyle 添付プロパティの現在値。

例外

elementnullです。

適用対象

こちらもご覧ください