TextBlock.GetFontFamily(DependencyObject) TextBlock.GetFontFamily(DependencyObject) TextBlock.GetFontFamily(DependencyObject) TextBlock.GetFontFamily(DependencyObject) Method

定義

指定した依存関係オブジェクトの FontFamilyProperty 添付プロパティの値を返します。Returns the value of the FontFamilyProperty attached property for a specified dependency object.

public:
 static System::Windows::Media::FontFamily ^ GetFontFamily(System::Windows::DependencyObject ^ element);
public static System.Windows.Media.FontFamily GetFontFamily (System.Windows.DependencyObject element);
static member GetFontFamily : System.Windows.DependencyObject -> System.Windows.Media.FontFamily
Public Shared Function GetFontFamily (element As DependencyObject) As FontFamily

パラメーター

element
DependencyObject DependencyObject DependencyObject DependencyObject

FontFamily 添付プロパティ値の取得元の依存関係オブジェクト。The dependency object from which to retrieve the value of the FontFamily attached property.

戻り値

指定した依存関係オブジェクトの FontFamily 添付プロパティの現在の値。The current value of the FontFamily attached property on the specified dependency object.

例外

適用対象

こちらもご覧ください