EditArray.Add(EditSpan) Method

Definition

Add a new atomic edit to the array. The edits cannot intersect each other.
The spans in each edit must be based on the current state of the buffer, and not based on post-edit spans. This EditArray will calculate the post edit spans for you.

public:
 void Add(Microsoft::VisualStudio::Package::EditSpan ^ editSpan);
void Add(Microsoft::VisualStudio::Package::EditSpan const & editSpan);
public void Add (Microsoft.VisualStudio.Package.EditSpan editSpan);
member this.Add : Microsoft.VisualStudio.Package.EditSpan -> unit
Public Sub Add (editSpan As EditSpan)

Parameters

editSpan
EditSpan

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.

Applies to