Share via


TextElement.SetFontSize(DependencyObject, Double) 方法

定義

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

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

參數

element
DependencyObject

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

value
Double

要設定屬性的目標新值。

例外狀況

dnull

適用於

另請參閱