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

 

Sets the current position of the editing window using the Input Method Editor (IME). The method provides a wrapper to .ime_3ho7

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

int SetCurPos(
	IntPtr hwnd,
	int x,
	int y,
	array<VSIME_ERR>^ perr
)

Parameters

hwnd
Type: System::IntPtr

[in] Handle to the editing window.

x
Type: System::Int32

[in] Horizontal position, in pixels, of the upper left corner of the window.

y
Type: System::Int32

[in] Vertical position, in pixels, of the upper left corner of the window.

perr
Type: array<Microsoft.VisualStudio.Shell.Interop::VSIME_ERR>^

[out] A nonzero value indicates success. Any other value, an error.

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::SetCurPos(
   [in] HWND hwnd, 
   [in] int x, 
   [in] int y, 
   [out] VSIME_ERR * perr
);
Return to top
Show: