IEditorOperations::InsertText Method (String^)

 

Inserts the given text at the current caret position.

Namespace:   Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

bool InsertText(
	String^ text
)

Parameters

text
Type: System::String^

The text to be inserted in the buffer.

Return Value

Type: System::Boolean

true if the edit succeeded, otherwise false.

Exception Condition
ArgumentNullException

text is null.

Return to top
Show: