IVsFontAndColorDefaults.GetFont Method
Returns a FontInfo structure containing information about a Category's default font to the Visual Studio environment.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Déclaration
Function GetFont ( _
<OutAttribute> pInfo As FontInfo() _
) As Integer
'Utilisation
Dim instance As IVsFontAndColorDefaults
Dim pInfo As FontInfo()
Dim returnValue As Integer
returnValue = instance.GetFont(pInfo)
int GetFont(
FontInfo[] pInfo
)
int GetFont(
[OutAttribute] array<FontInfo>^ pInfo
)
function GetFont(
pInfo : FontInfo[]
) : int
Parameters
pInfo
Type: array<Microsoft.VisualStudio.Shell.Interop.FontInfo[][out] Reference to a FontInfo structure.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsFontAndColorDefaults::GetFont(
[out] FontInfo *pInfo
);
The FontInfo object passed to IVsFontAndColorDefaults.GetFont must be initialized.
C++ programmers can use the INITFONTINFO macro to initialize the FontInfo structure.
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
Reference
IVsFontAndColorDefaults Interface