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
)
function CopyFontInfo(
    pDest : FontInfo[], 
    pSource : FontInfo[]
) : int

Parameters

  • pDest
    Type: []

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

  • pSource
    Type: []

    [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.

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.

Permissions

See Also

Concepts

Fonts

Reference

IVsFontAndColorUtilities Interface

IVsFontAndColorUtilities Members

Microsoft.VisualStudio.Shell.Interop Namespace