IVsHiddenTextClient::OnHiddenRegionChange Method (IVsHiddenRegion^, HIDDEN_REGION_EVENT, Int32)

 

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)

void OnHiddenRegionChange(
	IVsHiddenRegion^ pHidReg,
	HIDDEN_REGION_EVENT EventCode,
	int fBufferModifiable
)

Parameters

pHidReg
Type: Microsoft.VisualStudio.TextManager.Interop::IVsHiddenRegion^

[in] Pointer to a hidden region object, IVsHiddenRegion being expanded or collapsed.

EventCode
Type: Microsoft.VisualStudio.TextManager.Interop::HIDDEN_REGION_EVENT

[in] Indicates the exact user action taken on the hidden text region. For more information, see HIDDEN_REGION_EVENT.

fBufferModifiable
Type: System::Int32

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

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.

System_CAPS_noteNote

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

Return to top
Show: