次の方法で共有


IVsTextLayer.CanReplaceLines(Int32, Int32, Int32, Int32, Int32) Method

Definition

Determines if specified number of replacement characters can be inserted into lines.

public:
 int CanReplaceLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
public:
 int CanReplaceLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
int CanReplaceLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
public int CanReplaceLines (int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
abstract member CanReplaceLines : int * int * int * int * int -> int
Public 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 <= length of line).

iEndLine
Int32

[in] Ending line.

iEndIndex
Int32

[in] Ending character index within the line (must be <= length of line).

iNewLen
Int32

[in] Number of chars to insert, if any.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextLayer::CanReplaceLines(  
   [in] long iStartLine,  
   [in] CharIndex iStartIndex,  
   [in] long iEndLine,  
   [in] CharIndex iEndIndex,  
   [in] long iNewLen  
);  

Applies to