AuthoringSink.AddHiddenRegion Method (TextSpan)
Adds a new hidden region to the internal list based on the given TextSpan object.
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 ( _
context As TextSpan _
)
public virtual void AddHiddenRegion(
TextSpan context
)
public:
virtual void AddHiddenRegion(
TextSpan context
)
abstract AddHiddenRegion :
context:TextSpan -> unit
override AddHiddenRegion :
context:TextSpan -> unit
public function AddHiddenRegion(
context : TextSpan
)
Parameters
context
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan[in] A TextSpan object describing the span of code to be hidden.
Remarks
The base method constructs a NewHiddenRegion object that contains the given TextSpan object and calls the other AddHiddenRegion method.
The new NewHiddenRegion object has the following attributes set:
Attribute |
Value |
---|---|
Type |
hrtCollapsible (from the HIDDEN_REGION_TYPE enumeration) |
Behavior |
hrbEditorControlled (from the HIDDEN_REGION_BEHAVIOR enumeration) |
State |
hrsExpanded (from the HIDDEN_REGION_STATE enumeration) |
Banner |
null |
.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.