Condividi tramite


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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Dichiarazione
Public Overridable Sub UncommentSelection
'Utilizzo
Dim instance As ViewFilter

instance.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

See Also

Reference

ViewFilter Class

ViewFilter Members

Microsoft.VisualStudio.Package Namespace