IVsTextView.ReplaceTextOnLine 메서드
텍스트를 줄이 바뀝니다.
네임스페이스: Microsoft.VisualStudio.TextManager.Interop
어셈블리: Microsoft.VisualStudio.TextManager.Interop(Microsoft.VisualStudio.TextManager.Interop.dll)
구문
‘선언
Function ReplaceTextOnLine ( _
iLine As Integer, _
iStartCol As Integer, _
iCharsToReplace As Integer, _
pszNewText As String, _
iNewLen As Integer _
) As Integer
int ReplaceTextOnLine(
int iLine,
int iStartCol,
int iCharsToReplace,
string pszNewText,
int iNewLen
)
int ReplaceTextOnLine(
[InAttribute] int iLine,
[InAttribute] int iStartCol,
[InAttribute] int iCharsToReplace,
[InAttribute] String^ pszNewText,
[InAttribute] int iNewLen
)
abstract ReplaceTextOnLine :
iLine:int *
iStartCol:int *
iCharsToReplace:int *
pszNewText:string *
iNewLen:int -> int
function ReplaceTextOnLine(
iLine : int,
iStartCol : int,
iCharsToReplace : int,
pszNewText : String,
iNewLen : int
) : int
매개 변수
iLine
형식: Int32[in] 줄이 들어 있는 정수입니다.
iStartCol
형식: Int32[in] 시작 열을 포함 하는 정수입니다.
iCharsToReplace
형식: Int32[in] 대체 하는 문자가 들어 있는 정수입니다.
pszNewText
형식: String[in] 새 텍스트를 전달 하는 포인터입니다.
iNewLen
형식: Int32[in] 길이 (문자 수) 버퍼에 전달 되 고 있습니다.
반환 값
형식: Int32
메서드가 성공 하면, 반환 S_OK.실패할 경우 오류 코드를 반환합니다.
설명
COM 시그니처
Textmgr.idl에서:
HRESULT IVsTextView::ReplaceTextOnLine(
[in] long iLine,
[in] CharIndex iStartCol,
[in] long iCharsToReplace,
[in] const WCHAR *pszNewText,
[in] long iNewLen
);
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.