Compartir a través de


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.

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

See Also

Reference

IVsIME Interface

Microsoft.VisualStudio.Shell.Interop Namespace