Share via


VsTextViewClass.ReplaceTextOnLine(Int32, Int32, Int32, String, Int32) Method

Definition

Replaces a line of text.

public:
 virtual int ReplaceTextOnLine(int iLine, int iStartCol, int iCharsToReplace, System::String ^ pszNewText, int iNewLen) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::ReplaceTextOnLine;
public:
 virtual int ReplaceTextOnLine(int iLine, int iStartCol, int iCharsToReplace, System::String ^ pszNewText, int iNewLen);
public:
 virtual int ReplaceTextOnLine(int iLine, int iStartCol, int iCharsToReplace, Platform::String ^ pszNewText, int iNewLen) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::ReplaceTextOnLine;
 virtual int ReplaceTextOnLine(int iLine, int iStartCol, int iCharsToReplace, std::wstring const & pszNewText, int iNewLen);
public virtual int ReplaceTextOnLine (int iLine, int iStartCol, int iCharsToReplace, string pszNewText, int iNewLen);
abstract member ReplaceTextOnLine : int * int * int * string * int -> int
override this.ReplaceTextOnLine : int * int * int * string * int -> int
Public Overridable Function ReplaceTextOnLine (iLine As Integer, iStartCol As Integer, iCharsToReplace As Integer, pszNewText As String, iNewLen As Integer) As Integer

Parameters

iLine
Int32

[in] Integer containing the line.

iStartCol
Int32

[in] Integer containing the starting column.

iCharsToReplace
Int32

[in] Integer containing the characters to replace.

pszNewText
String

[in] Pointer the new text being passed in.

iNewLen
Int32

[in] Length of the buffer (number of characters) being passed in.

Returns

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

Implements

Applies to