ViewFilter.UncommentSelection Method
Handles the UNCOMMENTBLOCK command to uncomment the current selection in the current view.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaration
Public Overridable Sub UncommentSelection
public virtual void UncommentSelection()
public:
virtual void UncommentSelection()
abstract UncommentSelection : unit -> unit
override UncommentSelection : unit -> unit
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.