IVsIME.SetCurPos Method
Sets the current position of the editing window using the Input Method Editor (IME). The method provides a wrapper to ImmSetCompositionWindow.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function SetCurPos ( _
hwnd As IntPtr, _
x As Integer, _
y As Integer, _
<OutAttribute> perr As VSIME_ERR() _
) As Integer
int SetCurPos(
IntPtr hwnd,
int x,
int y,
VSIME_ERR[] perr
)
int SetCurPos(
[InAttribute] IntPtr hwnd,
[InAttribute] int x,
[InAttribute] int y,
[OutAttribute] array<VSIME_ERR>^ perr
)
abstract SetCurPos :
hwnd:IntPtr *
x:int *
y:int *
perr:VSIME_ERR[] byref -> int
function SetCurPos(
hwnd : IntPtr,
x : int,
y : int,
perr : VSIME_ERR[]
) : int
Parameters
hwnd
Type: IntPtr[in] Handle to the editing window.
x
Type: Int32[in] Horizontal position, in pixels, of the upper left corner of the window.
y
Type: 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: 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::SetCurPos(
[in] HWND hwnd,
[in] int x,
[in] int y,
[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.