Partager via


VsTextViewClass.PositionCaretForEditing(Int32, Int32) Method

Definition

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

public:
 virtual int PositionCaretForEditing(int iLine, int cIndentLevels) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::PositionCaretForEditing;
public:
 virtual int PositionCaretForEditing(int iLine, int cIndentLevels);
public:
 virtual int PositionCaretForEditing(int iLine, int cIndentLevels) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::PositionCaretForEditing;
 virtual int PositionCaretForEditing(int iLine, int cIndentLevels);
public virtual int PositionCaretForEditing (int iLine, int cIndentLevels);
abstract member PositionCaretForEditing : int * int -> int
override this.PositionCaretForEditing : int * int -> int
Public Overridable Function PositionCaretForEditing (iLine As Integer, cIndentLevels As Integer) As Integer

Parameters

iLine
Int32

[in] Integer containing the line to position the caret (cursor) on.

cIndentLevels
Int32

[in] Count of indent levels.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to