다음을 통해 공유


VsTextBufferClass.CanReplaceLines(Int32, Int32, Int32, Int32, Int32) Method

Definition

Tests whether a given editing operation such as copy or cut can succeed.

public:
 virtual int CanReplaceLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen) = Microsoft::VisualStudio::TextManager::Interop::IVsTextLines::CanReplaceLines;
public:
 virtual int CanReplaceLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
public:
 virtual int CanReplaceLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen) = Microsoft::VisualStudio::TextManager::Interop::IVsTextLines::CanReplaceLines;
 virtual int CanReplaceLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
public virtual int CanReplaceLines (int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
abstract member CanReplaceLines : int * int * int * int * int -> int
override this.CanReplaceLines : int * int * int * int * int -> int
Public Overridable Function CanReplaceLines (iStartLine As Integer, iStartIndex As Integer, iEndLine As Integer, iEndIndex As Integer, iNewLen As Integer) As Integer

Parameters

iStartLine
Int32

[in] Starting line.

iStartIndex
Int32

[in] Starting character index within the line. Must be less than or equal to the length of the line.

iEndLine
Int32

[in] Ending line.

iEndIndex
Int32

[in] Ending character index within the line. Must be less than or equal to the length of the line.

iNewLen
Int32

[in] Length of the newly inserted text.

Returns

If the method succeeds, returns S_OK; otherwise, returns an error code.

Implements

Applies to