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

Definition

Replaces a line of text.

C++/CX
public:
 virtual int ReplaceTextOnLine(int iLine, int iStartCol, int iCharsToReplace, Platform::String ^ pszNewText, int iNewLen) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::ReplaceTextOnLine;

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

Produkt Versiounen
Visual Studio SDK 2015, 2017, 2019, 2022