Source.MakeBaseSpanVisible Method

Ensures that the given span in the given hidden region is visible.

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

Syntax

'宣言
Public Overridable Function MakeBaseSpanVisible ( _
    region As IVsHiddenRegion, _
    span As TextSpan() _
) As Integer
'使用
Dim instance As Source
Dim region As IVsHiddenRegion
Dim span As TextSpan()
Dim returnValue As Integer

returnValue = instance.MakeBaseSpanVisible(region, _
    span)
public virtual int MakeBaseSpanVisible(
    IVsHiddenRegion region,
    TextSpan[] span
)
public:
virtual int MakeBaseSpanVisible(
    IVsHiddenRegion^ region, 
    array<TextSpan>^ span
)
public function MakeBaseSpanVisible(
    region : IVsHiddenRegion, 
    span : TextSpan[]
) : int

Parameters

  • span
    Type: []

    A TextSpan object describing the region to be made visible.

Return Value

Type: System.Int32

If successful, returns S_OK; otherwise, returns an error code. If this method is not implemented, return the E_NOTIMPL field.

Implements

IVsHiddenTextClient.MakeBaseSpanVisible(IVsHiddenRegion, [])

Remarks

This method makes sure the given hidden region is visible, usually by setting the hidden region's state to hrsExpanded or by removing the hidden region altogether by calling Invalidate.

This is an implementation of the IVsHiddenTextClient's MakeBaseSpanVisible method.

The base method always returns the E_NOTIMPL field.

See Outlining (Managed Package Framework) for more information about hidden regions.

Permissions

See Also

Concepts

Outlining (Managed Package Framework)

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace