Share via


ViewFilter.UncommentSelection Method

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

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

Syntax

'Declaration
Public Overridable Sub UncommentSelection
'Usage
Dim instance As ViewFilter

instance.UncommentSelection()
public virtual void UncommentSelection()
public:
virtual void UncommentSelection()
public function 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.

.NET Framework Security

See Also

Reference

ViewFilter Class

ViewFilter Members

Microsoft.VisualStudio.Package Namespace