Compartir a través de


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.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 ( _
    context As TextSpan _
)
public virtual void AddHiddenRegion(
    TextSpan context
)

Parameters

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

See Also

Reference

AuthoringSink Class

AddHiddenRegion Overload

Microsoft.VisualStudio.Package Namespace