Partager via


Source.MakeBaseSpanVisible(IVsHiddenRegion, TextSpan[]) Method

Definition

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

public:
 virtual int MakeBaseSpanVisible(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion ^ region, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ span);
public:
 virtual int MakeBaseSpanVisible(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion ^ region, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ span);
 virtual int MakeBaseSpanVisible(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion const & region, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & span);
public virtual int MakeBaseSpanVisible (Microsoft.VisualStudio.TextManager.Interop.IVsHiddenRegion region, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] span);
abstract member MakeBaseSpanVisible : Microsoft.VisualStudio.TextManager.Interop.IVsHiddenRegion * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
override this.MakeBaseSpanVisible : Microsoft.VisualStudio.TextManager.Interop.IVsHiddenRegion * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Overridable Function MakeBaseSpanVisible (region As IVsHiddenRegion, span As TextSpan()) As Integer

Parameters

region
IVsHiddenRegion

An IVsHiddenRegion object representing the hidden region to make visible.

span
TextSpan[]

A TextSpan object describing the region to be made visible.

Returns

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

Implements

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 in a Legacy Language Service for more information about hidden regions.

Applies to