共用方式為


WpfUtil.MeasureText 方法

命名空間:  Microsoft.TeamFoundation.Controls.WPF
組件:  Microsoft.TeamFoundation.Controls (在 Microsoft.TeamFoundation.Controls.dll 中)

語法

'宣告
Public Shared Function MeasureText ( _
    control As FrameworkElement, _
    useBold As Boolean _
) As Double
public static double MeasureText(
    FrameworkElement control,
    bool useBold
)

參數

傳回值

型別:System.Double

.NET Framework 安全性

請參閱

參考

WpfUtil 類別

Microsoft.TeamFoundation.Controls.WPF 命名空間