EditArray.Add Method
Adds the specified EditSpan object to the array of edit operations.
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
'Declaração
Public Sub Add ( _
editSpan As EditSpan _
)
public void Add(
EditSpan editSpan
)
Parameters
- editSpan
Type: Microsoft.VisualStudio.Package.EditSpan
[in] An EditSpan object describing an edit operation.
Remarks
An edit operation is either an insertion or a replacement. A deletion is a special case of a replacement where the replacement string is empty.
Edit operations should not intersect each other, as they would then depend on the order in which the operations were applied. This is not supported and leads to undefined results.
.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.