IVsFontAndColorDefaults::GetFont Method (array<FontInfo>^)

 

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)

int GetFont(
	array<FontInfo>^ pInfo
)

Parameters

pInfo
Type: array<Microsoft.VisualStudio.Shell.Interop::FontInfo>^

[out] Reference to a FontInfo structure.

Return Value

Type: System::Int32

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

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.

Return to top
Show: