[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Inserts the specified text at the specified position in the ITextBuffer.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
- Type: System.Int32
The buffer position at which the first character of the text will appear.
- Type: System.String
The text to be inserted.
Return ValueType: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
This is a shortcut for creating a new ITextEdit object, using it to insert the text, and then applying it. If the insertion fails on account of a read-only region, the snapshot returned will be the same as the current snapshot of the buffer before the attempted insertion.