IVsTextLines.ReloadLines 메서드
마커를 삭제 하지 않고 텍스트를 대체 합니다.
네임스페이스: Microsoft.VisualStudio.TextManager.Interop
어셈블리: Microsoft.VisualStudio.TextManager.Interop(Microsoft.VisualStudio.TextManager.Interop.dll)
구문
‘선언
Function ReloadLines ( _
iStartLine As Integer, _
iStartIndex As Integer, _
iEndLine As Integer, _
iEndIndex As Integer, _
pszText As IntPtr, _
iNewLen As Integer, _
<OutAttribute> pChangedSpan As TextSpan() _
) As Integer
int ReloadLines(
int iStartLine,
int iStartIndex,
int iEndLine,
int iEndIndex,
IntPtr pszText,
int iNewLen,
TextSpan[] pChangedSpan
)
int ReloadLines(
[InAttribute] int iStartLine,
[InAttribute] int iStartIndex,
[InAttribute] int iEndLine,
[InAttribute] int iEndIndex,
[InAttribute] IntPtr pszText,
[InAttribute] int iNewLen,
[OutAttribute] array<TextSpan>^ pChangedSpan
)
abstract ReloadLines :
iStartLine:int *
iStartIndex:int *
iEndLine:int *
iEndIndex:int *
pszText:IntPtr *
iNewLen:int *
pChangedSpan:TextSpan[] byref -> int
function ReloadLines(
iStartLine : int,
iStartIndex : int,
iEndLine : int,
iEndIndex : int,
pszText : IntPtr,
iNewLen : int,
pChangedSpan : TextSpan[]
) : int
매개 변수
iStartLine
형식: Int32[in] 시작 줄입니다.
iStartIndex
형식: Int32[in] 시작 문자 줄 내의 인덱스입니다. 줄의 길이 보다 작거나 있어야 합니다.
iEndLine
형식: Int32[in] 선을 끝입니다.
iEndIndex
형식: Int32[in] 줄 끝 문자 인덱스입니다. 줄의 길이 보다 작거나 파일 이어야 합니다.
pszText
형식: IntPtr[in] 포인터 또는 참조에 텍스트를 삽입 합니다.
iNewLen
형식: Int32[in] 새로 삽입된 한 텍스트의 길이입니다.
pChangedSpan
형식: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][out] 삽입 된 새 텍스트 범위입니다. 출발점과 선 및 인덱스 끝점을 설명합니다.
반환 값
형식: Int32
메서드가 성공 하면, 반환 S_OK.실패할 경우 오류 코드를 반환합니다.
설명
COM 시그니처
Textmgr.idl에서:
HRESULT IVsTextLines::ReloadLines(
[in] long iStartLine,
[in] CharIndex iStartIndex,
[in] long iEndLine,
[in] CharIndex iEndIndex,
[in] LPCWSTR pszText,
[in] long iNewLen,
[out] TextSpan * pChangedSpan
);
이 방법을 유사한 ReplaceLines, 하지만 마커를 삭제 하지 않고 텍스트를 바꿉니다. 버퍼를 디스크에서 다시 로드 되 고 고 (예: 중단점)의 모든 표시기를 제거 하지 않을 때 또는 마법사 코드 중 특정 섹션 대체 되는 경우와 같은 특별 한 경우에이 방법을 사용 합니다.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.