TextBlock.GetFontSize(DependencyObject) 方法

定义

返回指定依赖对象的附加属性的值 FontSize

public:
 static double GetFontSize(System::Windows::DependencyObject ^ element);
[System.ComponentModel.TypeConverter(typeof(System.Windows.FontSizeConverter))]
public static double GetFontSize(System.Windows.DependencyObject element);
[<System.ComponentModel.TypeConverter(typeof(System.Windows.FontSizeConverter))>]
static member GetFontSize : System.Windows.DependencyObject -> double
Public Shared Function GetFontSize (element As DependencyObject) As Double

参数

element
DependencyObject

要从中检索附加属性值的 FontSize 依赖项对象。

返回

指定依赖对象的附加属性的 FontSize 当前值。

属性

例外

elementnull

适用于

另请参阅