IVsIME.SetCurPos(IntPtr, Int32, Int32, VSIME_ERR[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the current position of the editing window using the Input Method Editor (IME). The method provides a wrapper to ImmSetCompositionWindow.
public:
int SetCurPos(IntPtr hwnd, int x, int y, cli::array <Microsoft::VisualStudio::Shell::Interop::VSIME_ERR> ^ perr);
public int SetCurPos (IntPtr hwnd, int x, int y, Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[] perr);
abstract member SetCurPos : nativeint * int * int * Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[] -> int
Public Function SetCurPos (hwnd As IntPtr, x As Integer, y As Integer, perr As VSIME_ERR()) As Integer
Parameters
- hwnd
-
IntPtr
nativeint
[in] Handle to the editing window.
- x
- Int32
[in] Horizontal position, in pixels, of the upper left corner of the window.
- y
- Int32
[in] Vertical position, in pixels, of the upper left corner of the window.
- perr
- VSIME_ERR[]
[out] A nonzero value indicates success. Any other value, an error.
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::SetCurPos(
[in] HWND hwnd,
[in] int x,
[in] int y,
[out] VSIME_ERR * perr
);