EditArray Constructor
Initializes a new instance of the EditArray class using a Source object and an IVsTextView object.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'宣言
Public Sub New ( _
source As Source, _
view As IVsTextView, _
merge As Boolean, _
description As String _
)
public EditArray(
Source source,
IVsTextView view,
bool merge,
string description
)
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.
Remarks
This constructor calls the other EditArray.#ctor 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.