IVsFontAndColorDefaults.GetFont(FontInfo[]) Method

Definition

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

pInfo
FontInfo[]

[out] Reference to a FontInfo structure.

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.

Applies to