TextBlock.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

要将属性设置为的新值。

例外

elementnull

适用于

另请参阅