TextBlock.SetFontFamily(DependencyObject, FontFamily) TextBlock.SetFontFamily(DependencyObject, FontFamily) TextBlock.SetFontFamily(DependencyObject, FontFamily) TextBlock.SetFontFamily(DependencyObject, FontFamily) Method

定義

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

public:
 static void SetFontFamily(System::Windows::DependencyObject ^ element, System::Windows::Media::FontFamily ^ value);
public static void SetFontFamily (System.Windows.DependencyObject element, System.Windows.Media.FontFamily value);
static member SetFontFamily : System.Windows.DependencyObject * System.Windows.Media.FontFamily -> unit
Public Shared Sub SetFontFamily (element As DependencyObject, value As FontFamily)

パラメーター

element
DependencyObject DependencyObject DependencyObject DependencyObject

FontFamily プロパティの値を設定する対象の依存関係オブジェクト。The dependency object on which to set the value of the FontFamily property.

value
FontFamily FontFamily FontFamily FontFamily

プロパティを設定する新しい値。The new value to set the property to.

例外

適用対象

こちらもご覧ください