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 (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaración
Public Overridable Sub AddHiddenRegion ( _
r As NewHiddenRegion _
)
public virtual void AddHiddenRegion(
NewHiddenRegion r
)
Parameters
- r
Type: Microsoft.VisualStudio.TextManager.Interop.NewHiddenRegion
[in] A NewHiddenRegion object to add to the list.
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
- 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.