Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
When performing edits that will change the selection, you can surround the edits with calls to and AddAfterTextBufferChangePrimitive to ensure that the selection behaves correctly when the edits are undone and redone.
- 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.