IVsIME::SetFont Method (IntPtr, IntPtr, array<VSIME_ERR>^)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int SetFont(
	IntPtr hwnd,
	IntPtr hf,
	array<VSIME_ERR>^ perr
)

Parameters

hwnd
Type: System::IntPtr

[in] Handle to the editor window.

hf
Type: System::IntPtr

[in] Handle to the font. If null, 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.

From vsshell.idl:

HRESULT IVsIME::SetFont(
   [in] HWND hwnd, 
   [in] HFONT hf, 
   [out] VSIME_ERR * perr
);
Return to top
Show: