IVsFontAndColorUtilities.CopyItemInfo Method

Copies information contained in one AllColorableItemInfo object to another AllColorableItemInfo object.

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

Syntax

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

Parameters

Return Value

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

Remarks

An AllColorableItemInfo object is used to store the attributes of a Font and Color Display Item.

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

.NET Framework Security

See Also

Reference

IVsFontAndColorUtilities Interface

Microsoft.VisualStudio.Shell.Interop Namespace

Other Resources

Fonts