Source.MakeBaseSpanVisible(IVsHiddenRegion, TextSpan[]) 方法

定义

确保给定隐藏区域中的给定范围可见。

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

参数

region
IVsHiddenRegion

一个 IVsHiddenRegion 对象,该对象表示要使其可见的隐藏区域。

span
TextSpan[]

TextSpan描述要使其可见的区域的对象。

返回

Int32

如果成功, S_OK 则返回; 否则返回错误代码。 如果未实现此方法,则返回 E_NOTIMPL 字段。

实现

注解

此方法可确保给定的隐藏区域可见,通常是通过将隐藏区域的状态设置为 hrsExpanded 或通过调用来完全删除隐藏区域 Invalidate

这是的方法的实现 IVsHiddenTextClient MakeBaseSpanVisible

基方法始终返回 E_NOTIMPL 字段。

有关隐藏区域的详细信息,请参阅 旧版语言服务中的大纲显示

适用于