다음을 통해 공유


IVsTextStream.ReplaceStream 메서드

편집, 줄 바꿈, 줄에 참가, 등 등을 처리 합니다.

네임스페이스:  Microsoft.VisualStudio.TextManager.Interop
어셈블리:  Microsoft.VisualStudio.TextManager.Interop(Microsoft.VisualStudio.TextManager.Interop.dll)

구문

‘선언
Function ReplaceStream ( _
    iPos As Integer, _
    iOldLen As Integer, _
    pszText As IntPtr, _
    iNewLen As Integer _
) As Integer
int ReplaceStream(
    int iPos,
    int iOldLen,
    IntPtr pszText,
    int iNewLen
)
int ReplaceStream(
    [InAttribute] int iPos, 
    [InAttribute] int iOldLen, 
    [InAttribute] IntPtr pszText, 
    [InAttribute] int iNewLen
)
abstract ReplaceStream : 
        iPos:int * 
        iOldLen:int * 
        pszText:IntPtr * 
        iNewLen:int -> int
function ReplaceStream(
    iPos : int, 
    iOldLen : int, 
    pszText : IntPtr, 
    iNewLen : int
) : int

매개 변수

  • iPos
    형식: Int32

    [in] 텍스트 버퍼의 시작 위치입니다.

  • iOldLen
    형식: Int32

    [in] 다시 로드 하는 텍스트의 길이입니다.

  • pszText
    형식: IntPtr

    [in] 삽입할 텍스트입니다.

  • iNewLen
    형식: Int32

    [in] 새로 삽입된 한 텍스트의 길이입니다.

반환 값

형식: Int32
메서드가 성공 하면, 반환 S_OK.실패할 경우 오류 코드를 반환합니다.

설명

COM 시그니처

Textmgr.idl에서:

HRESULT IVsTextStream::ReplaceStream(
   [in] long iPos,
   [in] long iOldLen,
   [in] LPCOLESTR pszText,
   [in] long iNewLen
);

텍스트 버퍼에 변경 완료 하려면이 메서드를 사용 합니다. 마커를 바꾸지 않고 텍스트를 바꿀 수 있습니다 ReloadStream.

.NET Framework 보안

참고 항목

참조

IVsTextStream 인터페이스

Microsoft.VisualStudio.TextManager.Interop 네임스페이스