EditArray Constructor

Initializes a new instance of the EditArray class using a Source object and an IVsTextView object.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Sub New ( _
    source As Source, _
    view As IVsTextView, _
    merge As Boolean, _
    description As String _
)
'Usage
Dim source As Source 
Dim view As IVsTextView 
Dim merge As Boolean 
Dim description As String 

Dim instance As New EditArray(source, _
    view, merge, description)
public EditArray(
    Source source,
    IVsTextView view,
    bool merge,
    string description
)
public:
EditArray(
    Source^ source, 
    IVsTextView^ view, 
    bool merge, 
    String^ description
)
public function EditArray(
    source : Source, 
    view : IVsTextView, 
    merge : boolean, 
    description : String
)

Parameters

  • merge
    Type: System.Boolean

    [in] true if the edits are to be merged where possible, otherwise false.

  • description
    Type: System.String

    [in] The description of the edit operations.

Remarks

This constructor calls the other EditArray#ctor(Source, Boolean, String) constructor to process the source, merge, and description parameters. This constructor then calls the GetSelectionSpan method on the IVsTextView object to obtain the current selection. This selection is restored after the edit operations are complete.

When this constructor is used, a CompoundViewAction class is instantiated to apply the edit operations to the view. This allows the view to optimize the edit operations.

.NET Framework Security

See Also

Reference

EditArray Class

EditArray Members

Microsoft.VisualStudio.Package Namespace