IVsTextViewIntellisenseHost.ReplaceSubjectTextSpan Method (Int32, Int32, String)
Editing subject text. Return E_FAIL (or something) if text contains CR/LFs and flags contain IHF_SINGLELINESUBJECT.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'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
Parameters
- iStartIndex
Type: System.Int32
- iEndIndex
Type: System.Int32
- pszText
Type: System.String
Return Value
Type: System.Int32
If the method succeeds, it returns NativeMethods.S_OK. If it fails, it returns an error code.
Implements
IVsIntellisenseHost.ReplaceSubjectTextSpan(Int32, Int32, String)
Remarks
From singlefileeditor.idl:
HRESULT IVsTextViewIntellisenseHost::ReplaceSubjectTextSpan([in] long iStartIndex, [in] long iEndIndex, [in] LPCWSTR pszText);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsTextViewIntellisenseHost Interface