AmbientFontHelper.GetDesignerFont Method
returns the font for the designer
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Shared Function GetDesignerFont ( _
sp As IServiceProvider _
) As Font
public static Font GetDesignerFont(
IServiceProvider sp
)
public:
static Font^ GetDesignerFont(
IServiceProvider^ sp
)
static member GetDesignerFont :
sp:IServiceProvider -> Font
public static function GetDesignerFont(
sp : IServiceProvider
) : Font
Parameters
- sp
Type: System.IServiceProvider
Return Value
Type: System.Drawing.Font
Remarks
Returns the font for the designer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.