Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Function InsertText ( _
text As String _
) As Boolean
bool InsertText(
string text
)
bool InsertText(
String^ text
)
abstract InsertText :
text:string -> bool
function InsertText(
text : String
) : boolean
Parameters
text
Type: StringThe text to be inserted in the buffer.
Return Value
Type: Boolean
true if the edit succeeded, otherwise false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | text is nulla null reference (Nothing in Visual Basic). |
.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.