Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the fault in the editor window. Provides a wrapper to ImmSetCompositionFont.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function SetFont ( _
hwnd As IntPtr, _
hf As IntPtr, _
<OutAttribute> perr As VSIME_ERR() _
) As Integer
int SetFont(
IntPtr hwnd,
IntPtr hf,
VSIME_ERR[] perr
)
int SetFont(
[InAttribute] IntPtr hwnd,
[InAttribute] IntPtr hf,
[OutAttribute] array<VSIME_ERR>^ perr
)
abstract SetFont :
hwnd:IntPtr *
hf:IntPtr *
perr:VSIME_ERR[] byref -> int
function SetFont(
hwnd : IntPtr,
hf : IntPtr,
perr : VSIME_ERR[]
) : int
Parameters
- hwnd
Type: System.IntPtr
[in] Handle to the editor window.
- hf
Type: System.IntPtr
[in] Handle to the font. If nulla null reference (Nothing in Visual Basic), uses the default system font.
- perr
Type: array<Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[]
[out] Error return value. Set to zero if there is an error. Nonzero otherwise.
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 IVsIME::SetFont(
[in] HWND hwnd,
[in] HFONT hf,
[out] VSIME_ERR * perr
);
.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.