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)

void OnHiddenRegionChange (
	[InAttribute] IVsHiddenRegion pHidReg,
	[InAttribute] HIDDEN_REGION_EVENT EventCode,
	[InAttribute] int fBufferModifiable
)
void OnHiddenRegionChange (
	/** @attribute InAttribute() */ IVsHiddenRegion pHidReg, 
	/** @attribute InAttribute() */ HIDDEN_REGION_EVENT EventCode, 
	/** @attribute InAttribute() */ int fBufferModifiable
)
function OnHiddenRegionChange (
	pHidReg : IVsHiddenRegion, 
	EventCode : HIDDEN_REGION_EVENT, 
	fBufferModifiable : int
)

Parameters

pHidReg

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

EventCode

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

fBufferModifiable

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

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.

NoteNote

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

Community Additions

ADD
Show: