IVsFontAndColorDefaults.GetFont(FontInfo[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a FontInfo structure containing information about a Category's default font to the Visual Studio environment.
public:
int GetFont(cli::array <Microsoft::VisualStudio::Shell::Interop::FontInfo> ^ pInfo);
public:
int GetFont(Platform::Array <Microsoft::VisualStudio::Shell::Interop::FontInfo> ^ pInfo);
int GetFont(std::Array <Microsoft::VisualStudio::Shell::Interop::FontInfo> const & pInfo);
public int GetFont (Microsoft.VisualStudio.Shell.Interop.FontInfo[] pInfo);
abstract member GetFont : Microsoft.VisualStudio.Shell.Interop.FontInfo[] -> int
Public Function GetFont (pInfo As FontInfo()) As Integer
Parameters
Returns
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.