ITextBufferEdit Interface
Represents edit operations against a ITextBuffer.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Dichiarazione
Public Interface ITextBufferEdit _
Inherits IDisposable
public interface ITextBufferEdit : IDisposable
public interface class ITextBufferEdit : IDisposable
type ITextBufferEdit =
interface
interface IDisposable
end
public interface ITextBufferEdit extends IDisposable
The ITextBufferEdit type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
Canceled | Determines whether this edit has been canceled. |
![]() |
Snapshot | Gets a snapshot of the ITextBuffer at the time this object was created. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Apply | Commits all the modifications made with this ITextBufferEdit object to the underlying ITextBuffer. It also causes the ITextBuffer to generate a new snapshot and raise its Changed event if any modifications were made. |
![]() |
Cancel | Abandons all modifications started using this ITextBufferEdit object. Any further calls on this object will result in an InvalidOperationException. |
![]() |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
Top
Remarks
For more information about text edits, see the section "A Closer Look at the Text Model and the Text View" in Inside the Editor.