Udostępnij za pośrednictwem


EditArray.Add Method

Adds the specified EditSpan object to the array of edit operations.

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

Syntax

'Declaration
Public Sub Add ( _
    editSpan As EditSpan _
)
public void Add(
    EditSpan editSpan
)
public:
void Add(
    EditSpan^ editSpan
)
member Add : 
        editSpan:EditSpan -> unit 
public function Add(
    editSpan : EditSpan
)

Parameters

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

See Also

Reference

EditArray Class

Microsoft.VisualStudio.Package Namespace