AuthoringSink::AddHiddenRegion Method (TextSpan)

 

Adds a new hidden region to the internal list based on the given TextSpan object.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual void AddHiddenRegion(
	TextSpan context
)

Parameters

context
Type: Microsoft.VisualStudio.TextManager.Interop::TextSpan

[in] A TextSpan object describing the span of code to be hidden.

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

Return to top
Show: