Método IVsTextViewIntellisenseHost.ReplaceSubjectTextSpan
A edição de texto do assunto. Retorne E_FAIL (ou algo), se o texto contém CR/LFs e os sinalizadores contêm IHF_SINGLELINESUBJECT.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Sintaxe
'Declaração
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
Parâmetros
iStartIndex
Tipo: Int32
iEndIndex
Tipo: Int32
pszText
Tipo: String
Valor de retorno
Tipo: Int32
Se o método for bem-sucedido, ele retorna NativeMethods.S_OK.Se ele falhar, ele retorna um código de erro.
Comentários
De singlefileeditor.idl:
HRESULT IVsTextViewIntellisenseHost::ReplaceSubjectTextSpan([in] long iStartIndex, [in] long iEndIndex, [in] LPCWSTR pszText);
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.