TextBlock.SetFontStretch(DependencyObject, FontStretch) 方法

定義

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

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

參數

element
DependencyObject

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

value
FontStretch

要設定屬性的目標新值。

例外狀況

elementnull

適用於

另請參閱