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
pDest
Type: array<Microsoft.VisualStudio.Shell.Interop.FontInfo[][in,out] A valid, initialized FontInfo object into which data from pSource, will be copied.
pSource
Type: array<Microsoft.VisualStudio.Shell.Interop.FontInfo[][in] The FontInfo object from which data will be copied.
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
- 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
Reference
IVsFontAndColorUtilities Interface
Microsoft.VisualStudio.Shell.Interop Namespace