IVsFontAndColorUtilities::CopyFontInfo Method (array<FontInfo>^, array<FontInfo>^)

 

Copies font information from one FontInfo object into another.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int CopyFontInfo(
	array<FontInfo>^ pDest,
	array<FontInfo>^ pSource
)

Parameters

pDest
Type: array<Microsoft.VisualStudio.Shell.Interop::FontInfo>^

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

pSource
Type: array<Microsoft.VisualStudio.Shell.Interop::FontInfo>^

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: