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

‘선언
Function CopyFontInfo ( _
    <OutAttribute> pDest As FontInfo(), _
    pSource As FontInfo() _
) As Integer
‘사용 방법
Dim instance As IVsFontAndColorUtilities
Dim pDest As FontInfo()
Dim pSource As FontInfo()
Dim returnValue As Integer

returnValue = instance.CopyFontInfo(pDest, _
    pSource)
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: System.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

IVsFontAndColorUtilities Members

Microsoft.VisualStudio.Shell.Interop Namespace

Other Resources

Fonts