次の方法で共有


VsTextBufferClass.ReloadLines Method

Definition

Replaces text without deleting markers.

public:
 virtual int ReloadLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IntPtr pszText, int iNewLen, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pChangedSpan) = Microsoft::VisualStudio::TextManager::Interop::IVsTextLines::ReloadLines;
public:
 virtual int ReloadLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IntPtr pszText, int iNewLen, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pChangedSpan);
public virtual int ReloadLines (int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IntPtr pszText, int iNewLen, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pChangedSpan);
abstract member ReloadLines : int * int * int * int * nativeint * int * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
override this.ReloadLines : int * int * int * int * nativeint * int * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Overridable Function ReloadLines (iStartLine As Integer, iStartIndex As Integer, iEndLine As Integer, iEndIndex As Integer, pszText As IntPtr, iNewLen As Integer, pChangedSpan As TextSpan()) 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 les than or equal to the length of the line.

pszText
IntPtr

nativeint

[in] Pointer or reference to text to insert.

iNewLen
Int32

[in] Length of the newly inserted text.

pChangedSpan
TextSpan[]

[out] The range of new text inserted. Describes a starting point and an ending point, in terms of a line and index.

Returns

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

Implements

Applies to