EditArray::Add Method (EditSpan^)

 

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

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
void Add(
	EditSpan^ editSpan
)

Parameters

editSpan
Type: Microsoft.VisualStudio.Package::EditSpan^

[in] An EditSpan object describing an edit operation.

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.

Return to top
Show: