TextElement.SetFontStyle(DependencyObject, FontStyle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定指定相依物件附加屬性的值 FontStyle 。
public:
static void SetFontStyle(System::Windows::DependencyObject ^ element, System::Windows::FontStyle value);
public static void SetFontStyle(System.Windows.DependencyObject element, System.Windows.FontStyle value);
static member SetFontStyle : System.Windows.DependencyObject * System.Windows.FontStyle -> unit
Public Shared Sub SetFontStyle (element As DependencyObject, value As FontStyle)
參數
- element
- DependencyObject
是用來設定屬性值 FontStyle 的相依物件。
- value
- FontStyle
設定屬性的新值。
例外狀況
d 是 null。