共用方式為


AmbientFontHelper.GetDesignerFont 方法

設計工具會傳回字型

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

語法

'宣告
Public Shared Function GetDesignerFont ( _
    sp As IServiceProvider _
) As Font
public static Font GetDesignerFont(
    IServiceProvider sp
)

參數

傳回值

型別:System.Drawing.Font

備註

設計工具會傳回字型。

.NET Framework 安全性

請參閱

參考

AmbientFontHelper 類別

Microsoft.VisualStudio.Modeling.Diagrams 命名空間