VsTextBufferClass.InitializeContent(String, Int32) Method

Definition

Initializes the content of the text buffer.

public:
 virtual int InitializeContent(System::String ^ pszText, int iLength) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer::InitializeContent;
public:
 virtual int InitializeContent(Platform::String ^ pszText, int iLength) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer::InitializeContent;
 virtual int InitializeContent(std::wstring const & pszText, int iLength);
public virtual int InitializeContent (string pszText, int iLength);
abstract member InitializeContent : string * int -> int
override this.InitializeContent : string * int -> int
Public Overridable Function InitializeContent (pszText As String, iLength As Integer) As Integer

Parameters

pszText
String

[in] Text to insert into the buffer.

iLength
Int32

[in] Number of characters to be inserted.

Returns

If the method succeeds, returns S_OK; otherwise, returns an error code.

Implements

Applies to