Freigeben über


AuthoringSink.AddHiddenRegion Method (NewHiddenRegion)

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

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

Syntax

'Declaration
Public Overridable Sub AddHiddenRegion ( _
    r As NewHiddenRegion _
)
'Usage
Dim instance As AuthoringSink
Dim r As NewHiddenRegion

instance.AddHiddenRegion(r)
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

AuthoringSink Members

AddHiddenRegion Overload

Microsoft.VisualStudio.Package Namespace