Share via


ViewFilter.UncommentSelection Method

Definition

Handles the UNCOMMENTBLOCK command to uncomment the current selection in the current view.

public:
 virtual void UncommentSelection();
public:
 virtual void UncommentSelection();
 virtual void UncommentSelection();
public virtual void UncommentSelection ();
abstract member UncommentSelection : unit -> unit
override this.UncommentSelection : unit -> unit
Public Overridable Sub UncommentSelection ()

Remarks

This method is called to remove the comment markers from the selected section of text in the current view.

The base method calls the GetSelection method to get the TextSpan object describing the currently selected section of code and then calls the UncommentSpan method on the Source object that was obtained from the CodeWindowManager object passed to the ViewFilter class constructor. Finally, the SetSelection method is called on the current view to select the modified text.

Applies to