Compartilhar via


EditArray(Source, IVsTextView, Boolean, String) Constructor

Definition

This constructor takes a view and will use CompoundViewAction to make the updates and it will update the current selection accordingly.

public:
 EditArray(Microsoft::VisualStudio::Package::Source ^ source, Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view, bool merge, System::String ^ description);
public EditArray (Microsoft.VisualStudio.Package.Source source, Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, bool merge, string description);
new Microsoft.VisualStudio.Package.EditArray : Microsoft.VisualStudio.Package.Source * Microsoft.VisualStudio.TextManager.Interop.IVsTextView * bool * string -> Microsoft.VisualStudio.Package.EditArray
Public Sub New (source As Source, view As IVsTextView, merge As Boolean, description As String)

Parameters

source
Source

The buffer to operate on

view
IVsTextView

The text view to use for CompoundViewAction and whose selection you want updated

merge
Boolean

Whether to attempt to merge edits

description
String

Name used in compound action

Remarks

This constructor calls the other Microsoft.VisualStudio.Package.EditArray.EditArray 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.

Applies to