次の方法で共有


Source.MakeBaseSpanVisible Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.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
)
abstract MakeBaseSpanVisible : 
        region:IVsHiddenRegion * 
        span:TextSpan[] -> int 
override MakeBaseSpanVisible : 
        region:IVsHiddenRegion * 
        span:TextSpan[] -> int 
public function MakeBaseSpanVisible(
    region : IVsHiddenRegion, 
    span : TextSpan[]
) : int

Parameters

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, array<TextSpan[])

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.

.NET Framework Security

See Also

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace

Other Resources

Outlining (Managed Package Framework)