Freigeben über


Completor.Apply Method

Definition

Applies all changes made through the Completor object.

public:
 void Apply();
public:
 void Apply();
void Apply();
public void Apply ();
member this.Apply : unit -> unit
Public Sub Apply ()

Remarks

This method calls the ReplaceTextOnLine method on the IVsTextView object that was passed to the Completor class constructor. This method then disposes off the CompoundAction object created in the constructor. Finally, the text view's caret position is updated (with a call to the SetCaretPos method on the IVsTextView object) based on the internal caret position stored in the Completor object.

Note

If a newline character was added to the line, the resulting text appears in the text view as multiple lines. However, the internal caret position does not take into account multiple lines so the text view's final caret position may not be where you expect.

Applies to