다음을 통해 공유


IVsTextViewIntellisenseHost.ReplaceSubjectTextSpan 메서드

제목 텍스트를 편집 합니다. E_FAIL (또는 무언가) CR/LFs 텍스트를 포함 하 고 IHF_SINGLELINESUBJECT 플래그를 포함 하는 경우 반환 됩니다.

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

구문

‘선언
Function ReplaceSubjectTextSpan ( _
    iStartIndex As Integer, _
    iEndIndex As Integer, _
    pszText As String _
) As Integer
int ReplaceSubjectTextSpan(
    int iStartIndex,
    int iEndIndex,
    string pszText
)
int ReplaceSubjectTextSpan(
    [InAttribute] int iStartIndex, 
    [InAttribute] int iEndIndex, 
    [InAttribute] String^ pszText
)
abstract ReplaceSubjectTextSpan : 
        iStartIndex:int * 
        iEndIndex:int * 
        pszText:string -> int
function ReplaceSubjectTextSpan(
    iStartIndex : int, 
    iEndIndex : int, 
    pszText : String
) : int

매개 변수

  • iStartIndex
    형식: Int32

     

  • iEndIndex
    형식: Int32

     

  • pszText
    형식: String

     

반환 값

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

설명

Singlefileeditor.idl에서:

HRESULT IVsTextViewIntellisenseHost::ReplaceSubjectTextSpan([in] long iStartIndex, [in] long iEndIndex, [in] LPCWSTR pszText);

.NET Framework 보안

참고 항목

참조

IVsTextViewIntellisenseHost 인터페이스

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