TextBlock.GetFontSize(DependencyObject) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指定依赖对象的附加属性的值 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 当前值。
- 属性
例外
element 是 null。