IVsFontAndColorDefaults.GetFont(FontInfo[]) 方法

定义

返回一个 FontInfo 结构,该结构包含与 Visual Studio 环境的类别的默认字体有关的信息。

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

参数

pInfo
FontInfo[]

弄对结构的引用 FontInfo

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

HRESULT IVsFontAndColorDefaults::GetFont(  
   [out] FontInfo *pInfo  
);  

FontInfo传递给的对象 IVsFontAndColorDefaults.GetFont 必须进行初始化。

C + + 程序员可以使用 INITFONTINFO 宏来初始化 FontInfo 结构。

适用于