IVsFontAndColorStorage.GetFont(LOGFONTW[], FontInfo[]) Yöntem

Tanım

Açık olan kategorinin yazı tipi özniteliklerini döndürür.

public:
 int GetFont(cli::array <Microsoft::VisualStudio::Shell::Interop::LOGFONTW> ^ pLOGFONT, cli::array <Microsoft::VisualStudio::Shell::Interop::FontInfo> ^ pInfo);
int GetFont(std::Array <Microsoft::VisualStudio::Shell::Interop::LOGFONTW> const & pLOGFONT, std::Array <Microsoft::VisualStudio::Shell::Interop::FontInfo> const & pInfo);
public int GetFont (Microsoft.VisualStudio.Shell.Interop.LOGFONTW[] pLOGFONT, Microsoft.VisualStudio.Shell.Interop.FontInfo[] pInfo);
abstract member GetFont : Microsoft.VisualStudio.Shell.Interop.LOGFONTW[] * Microsoft.VisualStudio.Shell.Interop.FontInfo[] -> int
Public Function GetFont (pLOGFONT As LOGFONTW(), pInfo As FontInfo()) As Integer

Parametreler

pLOGFONT
LOGFONTW[]

[in, out] Bir yapıya başvuru LOGFONTW .

pInfo
FontInfo[]

[in, out] Bir numaralandırmaya başvuru FontInfo .

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

COM Imzası

Vsshell. IDL dosyasından:

HRESULT IVsFontAndColorStorage::GetFont(  
   [in, out] LOGFONTW *pLOGFONT,  
   [in, out] FontInfo *pInfo  
);  

Ya pLOGFONT da pInfo NULL (C++) veya null (C#) olabilir. Alınan tek veri, yüz adı, karakter kümesi ve nokta boyutudur.

C++ ' da, yüz adı istemci tarafından serbest bırakılmalıdır bir BSTR 'dir.

Bu yöntem tarafından döndürülen ayarlarla eşleşecek şekilde görüntülemeyi güncelleştirmek için, Visual Studio ortamında metin işleme olan uygulamalara sahiptir.

Şunlara uygulanır