共用方式為


AuthoringSink.AddHiddenRegion Method (NewHiddenRegion)

Adds the specified NewHiddenRegion object to the internal hidden regions list.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.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)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Public Overridable Sub AddHiddenRegion ( _
    r As NewHiddenRegion _
)
public virtual void AddHiddenRegion(
    NewHiddenRegion r
)
public:
virtual void AddHiddenRegion(
    NewHiddenRegion r
)
abstract AddHiddenRegion : 
        r:NewHiddenRegion -> unit  
override AddHiddenRegion : 
        r:NewHiddenRegion -> unit
public function AddHiddenRegion(
    r : NewHiddenRegion
)

Parameters

Remarks

A NewHiddenRegion contains a number of flags as well as a TextSpan describing the region to be hidden.

The base method adds the specified region to an internal list. Note that there is no checking for duplicate regions so it is possible to add the same region twice.

.NET Framework Security

See Also

Reference

AuthoringSink Class

AddHiddenRegion Overload

Microsoft.VisualStudio.Package Namespace