IVsFontAndColorUtilities.CopyFontInfo(FontInfo[], FontInfo[]) Method

Definition

Copies font information from one FontInfo object into another.

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

Parameters

pDest
FontInfo[]

[in,out] A valid, initialized FontInfo object into which data from pSource, will be copied.

pSource
FontInfo[]

[in] The FontInfo object from which data will be copied.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

A FontInfo describes the font configuration of a Font and Color Display Item.

You must ensure that the FontInfo object pDest is valid, which can be done by initializing it using InitFontInfo.

Applies to