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
'宣言
Function CopyItemInfo ( _
<OutAttribute> pDest As AllColorableItemInfo(), _
pSource As AllColorableItemInfo() _
) As Integer
'使用
Dim instance As IVsFontAndColorUtilities
Dim pDest As AllColorableItemInfo()
Dim pSource As AllColorableItemInfo()
Dim returnValue As Integer
returnValue = instance.CopyItemInfo(pDest, _
pSource)
int CopyItemInfo(
AllColorableItemInfo[] pDest,
AllColorableItemInfo[] pSource
)
int CopyItemInfo(
[InAttribute] [OutAttribute] array<AllColorableItemInfo>^ pDest,
[InAttribute] array<AllColorableItemInfo>^ pSource
)
function CopyItemInfo(
pDest : AllColorableItemInfo[],
pSource : AllColorableItemInfo[]
) : int
Parameters
pDest
Type: [][in] A valid, initialized AllColorableItemInfo object into which data from pSource, will be copied.
pSource
Type: [][in,out] The AllColorableItemInfo 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
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.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Concepts
Reference
IVsFontAndColorUtilities Interface