Partager via


IVsFontAndColorDefaults.GetFont Method

Returns a FontInfo structure containing information about a Category's default font to the Visual Studio environment.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Déclaration
Function GetFont ( _
    <OutAttribute> pInfo As FontInfo() _
) As Integer
'Utilisation
Dim instance As IVsFontAndColorDefaults
Dim pInfo As FontInfo()
Dim returnValue As Integer

returnValue = instance.GetFont(pInfo)
int GetFont(
    FontInfo[] pInfo
)
int GetFont(
    [OutAttribute] array<FontInfo>^ pInfo
)
function GetFont(
    pInfo : FontInfo[]
) : int

Parameters

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsFontAndColorDefaults::GetFont(
   [out] FontInfo *pInfo
);

The FontInfo object passed to IVsFontAndColorDefaults.GetFont must be initialized.

C++ programmers can use the INITFONTINFO macro to initialize the FontInfo structure.

Permissions

See Also

Reference

IVsFontAndColorDefaults Interface

IVsFontAndColorDefaults Members

Microsoft.VisualStudio.Shell.Interop Namespace