Freigeben über


ITextBufferEdit Interface

Definition

Represents edit operations against a ITextBuffer.

public interface class ITextBufferEdit : IDisposable
public interface ITextBufferEdit : IDisposable
type ITextBufferEdit = interface
    interface IDisposable
Public Interface ITextBufferEdit
Implements IDisposable
Derived
Implements

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.

Properties

Canceled

Determines whether this edit has been canceled.

Snapshot

A snapshot of the ITextBuffer at the time this ITextBufferEdit object was created.

Methods

Apply()

Commits all the modifications made with this ITextBufferEdit object to the underlying ITextBuffer. Depending on the type of edit, it may also cause the ITextBuffer to generate a new snapshot and raise its Changed event if any modifications were made. This method may be called only once. After it is called, any other calls on this object (other than Dispose) will result in an InvalidOperationException.

Cancel()

Abandons all modifications started using this ITextBufferEdit object. Any further calls on this object will result in an InvalidOperationException.

Applies to