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
'Declaration
Public Overridable Function MakeBaseSpanVisible ( _
region As IVsHiddenRegion, _
span As TextSpan() _
) As Integer
'Usage
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
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Package Namespace