Source::MakeBaseSpanVisible Method (IVsHiddenRegion^, array<TextSpan>^)

 

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

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

public:
virtual int MakeBaseSpanVisible(
	IVsHiddenRegion^ region,
	array<TextSpan>^ span
)

Parameters

region
Type: Microsoft.VisualStudio.TextManager.Interop::IVsHiddenRegion^

An IVsHiddenRegion object representing the hidden region to make visible.

span
Type: array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^

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.

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.

Return to top
Show: