Share via


VsTextViewClass.SetCaretPos Method

Sets the coordinates of the end point of a selection.

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

Syntax

'Déclaration
Public Overridable Function SetCaretPos ( _
    iLine As Integer, _
    iColumn As Integer _
) As Integer
public virtual int SetCaretPos(
    int iLine,
    int iColumn
)
public:
virtual int SetCaretPos(
    [InAttribute] int iLine, 
    [InAttribute] int iColumn
)
abstract SetCaretPos : 
        iLine:int * 
        iColumn:int -> int 
override SetCaretPos : 
        iLine:int * 
        iColumn:int -> int 
public function SetCaretPos(
    iLine : int, 
    iColumn : int
) : int

Parameters

  • iLine
    Type: System.Int32
    [in] Line containing the caret position.
  • iColumn
    Type: System.Int32
    [in] Column identifying the caret position. Viewcol coordinates may include virtual space.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTextView.SetCaretPos(Int32, Int32)

.NET Framework Security

See Also

Reference

VsTextViewClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace