次の方法で共有


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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Public Overridable Sub AddHiddenRegion ( _
    context As TextSpan _
)
'使用
Dim instance As AuthoringSink
Dim context As TextSpan

instance.AddHiddenRegion(context)
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

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

AuthoringSink Members

AddHiddenRegion Overload

Microsoft.VisualStudio.Package Namespace