IVsTextStream.ReplaceStreamEx 메서드
편집, 줄 바꿈, 줄에 참가, 등 등을 처리 합니다.
네임스페이스: Microsoft.VisualStudio.TextManager.Interop
어셈블리: Microsoft.VisualStudio.TextManager.Interop(Microsoft.VisualStudio.TextManager.Interop.dll)
구문
‘선언
Function ReplaceStreamEx ( _
dwFlags As UInteger, _
iPos As Integer, _
iOldLen As Integer, _
pszText As IntPtr, _
iNewLen As Integer, _
<OutAttribute> ByRef piActualLen As Integer _
) As Integer
int ReplaceStreamEx(
uint dwFlags,
int iPos,
int iOldLen,
IntPtr pszText,
int iNewLen,
out int piActualLen
)
int ReplaceStreamEx(
[InAttribute] unsigned int dwFlags,
[InAttribute] int iPos,
[InAttribute] int iOldLen,
[InAttribute] IntPtr pszText,
[InAttribute] int iNewLen,
[OutAttribute] int% piActualLen
)
abstract ReplaceStreamEx :
dwFlags:uint32 *
iPos:int *
iOldLen:int *
pszText:IntPtr *
iNewLen:int *
piActualLen:int byref -> int
function ReplaceStreamEx(
dwFlags : uint,
iPos : int,
iOldLen : int,
pszText : IntPtr,
iNewLen : int,
piActualLen : int
) : int
매개 변수
dwFlags
형식: UInt32[in] 교체 작업 중 텍스트를 수정 하는 옵션입니다. 목록에 대 한 dwFlags 값을 참조 하십시오. REPLACE_TEXT_FLAGS.
iPos
형식: Int32[in] 텍스트 버퍼의 시작 위치입니다.
iOldLen
형식: Int32[in] 다시 로드 하는 텍스트의 길이입니다.
pszText
형식: IntPtr[in] 삽입할 텍스트입니다.
iNewLen
형식: Int32[in] 새로 삽입된 한 텍스트의 길이입니다.
piActualLen
형식: Int32%[out] 문자 수를 변경 합니다.
반환 값
형식: Int32
메서드가 성공 하면, 반환 S_OK.실패할 경우 오류 코드를 반환합니다.
설명
COM 시그니처
Textmgr.idl에서:
HRESULT IVsTextStream::ReplaceStreamEx(
[in] DWORD dwFlags,
[in] long iPos,
[in] long iOldLen,
[in] const WCHAR *pszText,
[in] long iNewLen,
[out] long *piActualLen
);
필자와 비슷한ReplaceStream의 추가 옵션을 지정할 수 있지만 해당 dwFlags 매개 변수.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.