Partager via


ITextBuffer.CreateEdit Method

Definition

Overloads

CreateEdit()

Creates an ITextEdit object that handles compound edit operations on this buffer.

CreateEdit(EditOptions, Nullable<Int32>, Object)

Creates an ITextEdit object that handles compound edit operations on this buffer.

CreateEdit()

Creates an ITextEdit object that handles compound edit operations on this buffer.

public:
 Microsoft::VisualStudio::Text::ITextEdit ^ CreateEdit();
public Microsoft.VisualStudio.Text.ITextEdit CreateEdit ();
abstract member CreateEdit : unit -> Microsoft.VisualStudio.Text.ITextEdit
Public Function CreateEdit () As ITextEdit

Returns

A new ITextEdit object.

Exceptions

Another ITextBufferEdit object is active for this text buffer.

Remarks

This method is equivalent to CreateEdit(EditOptions.None, null, null).

Applies to

CreateEdit(EditOptions, Nullable<Int32>, Object)

Creates an ITextEdit object that handles compound edit operations on this buffer.

public:
 Microsoft::VisualStudio::Text::ITextEdit ^ CreateEdit(Microsoft::VisualStudio::Text::EditOptions options, Nullable<int> reiteratedVersionNumber, System::Object ^ editTag);
public Microsoft.VisualStudio.Text.ITextEdit CreateEdit (Microsoft.VisualStudio.Text.EditOptions options, int? reiteratedVersionNumber, object editTag);
abstract member CreateEdit : Microsoft.VisualStudio.Text.EditOptions * Nullable<int> * obj -> Microsoft.VisualStudio.Text.ITextEdit
Public Function CreateEdit (options As EditOptions, reiteratedVersionNumber As Nullable(Of Integer), editTag As Object) As ITextEdit

Parameters

options
EditOptions

Options to apply to the compound edit operation.

reiteratedVersionNumber
Nullable<Int32>

If not null, indicates that the version to be created by this edit operation is the product of an undo or redo operation.

editTag
Object

An arbitrary object that will be associated with this edit transaction.

Returns

A new ITextEdit object.

Exceptions

Another ITextBufferEdit object is active for this text buffer, or CheckEditAccess() would return false.

Applies to