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
'Déclaration
Public Overridable Sub AddHiddenRegion ( _
r As NewHiddenRegion _
)
'Utilisation
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
- 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.