共用方式為


TextElement.SetFontFamily(DependencyObject, FontFamily) 方法

定義

設定所指定相依性物件的 FontFamily 附加屬性值。

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

要設定 FontFamily 屬性值的相依性物件。

value
FontFamily

要設定屬性的目標新值。

例外狀況

dnull

適用於

另請參閱