Partager via


VsTextViewClass.PositionCaretForEditing Method

Puts the caret in a position suitable for editing a function.

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

Syntax

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

Parameters

  • iLine
    Type: System.Int32
    [in] Integer containing the line to position the caret (cursor) on.
  • cIndentLevels
    Type: System.Int32
    [in] Count of indent levels.

Return Value

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

Implements

IVsTextView.PositionCaretForEditing(Int32, Int32)

.NET Framework Security

See Also

Reference

VsTextViewClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace