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。