Condividi tramite


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
Public property Canceled Determines whether this edit has been canceled.
Public property Snapshot Gets a snapshot of the ITextBuffer at the time this object was created.

Top

Methods

  Name Description
Public method 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.
Public method Cancel Abandons all modifications started using this ITextBufferEdit object. Any further calls on this object will result in an InvalidOperationException.
Public method 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.

See Also

Reference

Microsoft.VisualStudio.Text Namespace