Partager via


IVsHiddenTextClient.OnHiddenRegionChange Method

Called when the user expands or collapses a hidden region.

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

Syntax

'Declaration
Sub OnHiddenRegionChange ( _
    pHidReg As IVsHiddenRegion, _
    EventCode As HIDDEN_REGION_EVENT, _
    fBufferModifiable As Integer _
)
void OnHiddenRegionChange(
    IVsHiddenRegion pHidReg,
    HIDDEN_REGION_EVENT EventCode,
    int fBufferModifiable
)
void OnHiddenRegionChange(
    [InAttribute] IVsHiddenRegion^ pHidReg, 
    [InAttribute] HIDDEN_REGION_EVENT EventCode, 
    [InAttribute] int fBufferModifiable
)
abstract OnHiddenRegionChange : 
        pHidReg:IVsHiddenRegion * 
        EventCode:HIDDEN_REGION_EVENT * 
        fBufferModifiable:int -> unit
function OnHiddenRegionChange(
    pHidReg : IVsHiddenRegion, 
    EventCode : HIDDEN_REGION_EVENT, 
    fBufferModifiable : int
)

Parameters

  • fBufferModifiable
    Type: System.Int32

    [in] Flag indicating whether the buffer can be modified.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsHiddenTextClient::OnHiddenRegionChange(
   [in] IVsHiddenRegion *pHidReg, 
   [in] HIDDEN_REGION_EVENT EventCode, 
   [in] BOOL fBufferModifiable
);

IVsHiddenTextClient.OnHiddenRegionChange is only fired in response to external churn on the view or buffer; it is not fired in response to calls on IVsHiddenTextState.

Note

Do not add or remove hidden regions in response to this method being called.

.NET Framework Security

See Also

Reference

IVsHiddenTextClient Interface

Microsoft.VisualStudio.TextManager.Interop Namespace