EditArray Constructor (Source^, IVsTextView^, Boolean, String^)
Initializes a new instance of the EditArray class using a Source object and an IVsTextView object.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- source
-
Type:
Microsoft.VisualStudio.Package::Source^
[in] A Source object representing the source to be changed.
- view
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextView^
[in] An IVsTextView object representing the view that displays the source.
- 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.
This constructor calls the other M:Microsoft.VisualStudio.Package.EditArray.#ctor(Microsoft.VisualStudio.Package.Source,System.Boolean,System.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.