Método IVsTextView.ReplaceTextOnLine
Substitui a linha do texto.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxe
'Declaração
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
Parâmetros
iLine
Tipo: Int32[in] Integer que contém a linha.
iStartCol
Tipo: Int32[in] Integer que contém a coluna de partida.
iCharsToReplace
Tipo: Int32[in] Integer contendo os caracteres para substituir.
pszNewText
Tipo: String[in] O novo texto que está sendo passado do ponteiro.
iNewLen
Tipo: Int32[in] Comprimento do buffer (número de caracteres) que está sendo transmitido.
Valor de retorno
Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.
Comentários
COM assinatura
De textmgr.idl:
HRESULT IVsTextView::ReplaceTextOnLine(
[in] long iLine,
[in] CharIndex iStartCol,
[in] long iCharsToReplace,
[in] const WCHAR *pszNewText,
[in] long iNewLen
);
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.