Partager via


IVsFontAndColorUtilities.CopyFontInfo Method

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)

Syntax

'Declaration
Function CopyFontInfo ( _
    <OutAttribute> pDest As FontInfo(), _
    pSource As FontInfo() _
) As Integer
int CopyFontInfo(
    FontInfo[] pDest,
    FontInfo[] pSource
)
int CopyFontInfo(
    [InAttribute] [OutAttribute] array<FontInfo>^ pDest, 
    [InAttribute] array<FontInfo>^ pSource
)
abstract CopyFontInfo : 
        pDest:FontInfo[] byref * 
        pSource:FontInfo[] -> int
function CopyFontInfo(
    pDest : FontInfo[], 
    pSource : FontInfo[]
) : int

Parameters

Return Value

Type: Int32
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.

.NET Framework Security

See Also

Reference

IVsFontAndColorUtilities Interface

Microsoft.VisualStudio.Shell.Interop Namespace

Other Resources

Fonts