IVsTextStream::InitializeContent Method (String^, Int32)
Visual Studio 2015
Initializes the content of the text buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- pszText
-
Type:
System::String^
[in] Text to insert into the buffer.
- iLength
-
Type:
System::Int32
[in] Number of characters to be inserted.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsTextStream::InitializeContent( [in] const WCHAR *pszText, [in] long iLength );
This method will fail unless called on a new untitled buffer.
Show: