IVsFontAndColorStorage::GetFont Method (array<LOGFONTW>^, array<FontInfo>^)
Visual Studio 2015
Returns the font attributes for the currently open Category.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pLOGFONT
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::LOGFONTW>^
[in, out] Reference to a LOGFONTW structure.
- pInfo
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::FontInfo>^
[in, out] Reference to a FontInfo enumeration.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsFontAndColorStorage::GetFont( [in, out] LOGFONTW *pLOGFONT, [in, out] FontInfo *pInfo );
Either pLOGFONT or pInfo may be NULL (C++) or null (C#). The only data retrieved is the face name, character set, and point size.
In C++, the face name is a BSTR that must be freed by the client.
It is up to applications rendering text to the Visual Studio environment to update their display to match the settings returned by this method.
Show: