Share via


EditArray.ApplyEdits Method

Applies all edit operations that have been accumulated.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Sub ApplyEdits
public void ApplyEdits()
public:
void ApplyEdits()
member ApplyEdits : unit -> unit
public function ApplyEdits()

Remarks

Depending on whether an IVsTextView object is available, this method instantiates a CompoundViewAction or CompoundAction class. This method then updates the selection span based on the edit operations, optionally merges the edit operations where possible, and finally applies each edit operation in reverse order to the Source object.

.NET Framework Security

See Also

Reference

EditArray Class

Microsoft.VisualStudio.Package Namespace