IVsIME.SetFont(IntPtr, IntPtr, VSIME_ERR[]) Method

Definition

Sets the fault in the editor window. Provides a wrapper to ImmSetCompositionFont.

public:
 int SetFont(IntPtr hwnd, IntPtr hf, cli::array <Microsoft::VisualStudio::Shell::Interop::VSIME_ERR> ^ perr);
public int SetFont (IntPtr hwnd, IntPtr hf, Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[] perr);
abstract member SetFont : nativeint * nativeint * Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[] -> int
Public Function SetFont (hwnd As IntPtr, hf As IntPtr, perr As VSIME_ERR()) As Integer

Parameters

hwnd
IntPtr

nativeint

[in] Handle to the editor window.

hf
IntPtr

nativeint

[in] Handle to the font. If null, uses the default system font.

perr
VSIME_ERR[]

[out] Error return value. Set to zero if there is an error. Nonzero otherwise.

Returns

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  
);  

Applies to