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

'Declaration
Function GetFont ( _
    <OutAttribute> pInfo As FontInfo() _
) As Integer
int GetFont(
    FontInfo[] pInfo
)
int GetFont(
    [OutAttribute] array<FontInfo>^ pInfo
)
abstract GetFont : 
        pInfo:FontInfo[] byref -> int
function GetFont(
    pInfo : FontInfo[]
) : int

Parameters

Return Value

Type: 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.

.NET Framework Security

See Also

Reference

IVsFontAndColorDefaults Interface

Microsoft.VisualStudio.Shell.Interop Namespace