次の方法で共有


ITextBuffer.CreateEdit Method (EditOptions, Nullable<Int32>, Object)

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

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'宣言
Function CreateEdit ( _
    options As EditOptions, _
    reiteratedVersionNumber As Nullable(Of Integer), _
    editTag As Object _
) As ITextEdit
ITextEdit CreateEdit(
    EditOptions options,
    Nullable<int> reiteratedVersionNumber,
    Object editTag
)
ITextEdit^ CreateEdit(
    EditOptions options, 
    Nullable<int> reiteratedVersionNumber, 
    Object^ editTag
)
abstract CreateEdit : 
        options:EditOptions * 
        reiteratedVersionNumber:Nullable<int> * 
        editTag:Object -> ITextEdit 
function CreateEdit(
    options : EditOptions, 
    reiteratedVersionNumber : Nullable<int>, 
    editTag : Object
) : ITextEdit

Parameters

  • reiteratedVersionNumber
    Type: System.Nullable<Int32>
    If not nulla null reference (Nothing in Visual Basic), indicates that the version to be created by this edit operation is the product of an undo or redo operation.
  • editTag
    Type: System.Object
    An object associated with this edit transaction.

Return Value

Type: Microsoft.VisualStudio.Text.ITextEdit
A new ITextEdit object.

Exceptions

Exception Condition
InvalidOperationException

Another ITextBufferEdit object is active for this text buffer.

.NET Framework Security

See Also

Reference

ITextBuffer Interface

CreateEdit Overload

Microsoft.VisualStudio.Text Namespace