VsTextBufferClass::InitializeContent Method (String^, Int32)

 

Initializes the content of the text buffer.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public:
virtual int InitializeContent(
	String^ pszText,
	int iLength
)

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::Int32

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

Return to top
Show: