次の方法で共有


IVsHiddenTextClient.MakeBaseSpanVisible Method

Called when a particular hidden region needs to be displayed.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣言
Function MakeBaseSpanVisible ( _
    pHidReg As IVsHiddenRegion, _
    pBaseSpan As TextSpan() _
) As Integer
int MakeBaseSpanVisible(
    IVsHiddenRegion pHidReg,
    TextSpan[] pBaseSpan
)
int MakeBaseSpanVisible(
    [InAttribute] IVsHiddenRegion^ pHidReg, 
    [InAttribute] array<TextSpan>^ pBaseSpan
)
abstract MakeBaseSpanVisible : 
        pHidReg:IVsHiddenRegion * 
        pBaseSpan:TextSpan[] -> int 
function MakeBaseSpanVisible(
    pHidReg : IVsHiddenRegion, 
    pBaseSpan : TextSpan[]
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsHiddenTextClient::MakeBaseSpanVisible(
   [in] IVsHiddenRegion *pHidReg, 
   [in] TextSpan *pBaseSpan
);

This method is called when the text within a hidden region should be exposed. If the user does something that requires a piece of hidden text to be visible (for example, Goto line command, debugger stepping, find in files hit, and so on) then the environment calls this method for regions that the hidden text manager cannot automatically make visible. In the current implementation this will only happen for concealed regions; collapsible regions will be automatically expanded.

Note

When this method is called, the client must expose the text in the specified hidden region. The client must either destroy the hidden region by calling Invalidate or reset the hidden region's range so that it no longer includes the required text. It is acceptable to add or remove other regions when this method is called.

.NET Framework Security

See Also

Reference

IVsHiddenTextClient Interface

Microsoft.VisualStudio.TextManager.Interop Namespace