Udostępnij za pośrednictwem


IVsHiddenTextClient.OnHiddenRegionChange Method

Definition

Called when the user expands or collapses a hidden region.

public:
 void OnHiddenRegionChange(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion ^ pHidReg, Microsoft::VisualStudio::TextManager::Interop::HIDDEN_REGION_EVENT EventCode, int fBufferModifiable);
public:
 void OnHiddenRegionChange(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion ^ pHidReg, Microsoft::VisualStudio::TextManager::Interop::HIDDEN_REGION_EVENT EventCode, int fBufferModifiable);
void OnHiddenRegionChange(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion const & pHidReg, Microsoft::VisualStudio::TextManager::Interop::HIDDEN_REGION_EVENT EventCode, int fBufferModifiable);
public void OnHiddenRegionChange (Microsoft.VisualStudio.TextManager.Interop.IVsHiddenRegion pHidReg, Microsoft.VisualStudio.TextManager.Interop.HIDDEN_REGION_EVENT EventCode, int fBufferModifiable);
abstract member OnHiddenRegionChange : Microsoft.VisualStudio.TextManager.Interop.IVsHiddenRegion * Microsoft.VisualStudio.TextManager.Interop.HIDDEN_REGION_EVENT * int -> unit
Public Sub OnHiddenRegionChange (pHidReg As IVsHiddenRegion, EventCode As HIDDEN_REGION_EVENT, fBufferModifiable As Integer)

Parameters

pHidReg
IVsHiddenRegion

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

EventCode
HIDDEN_REGION_EVENT

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

fBufferModifiable
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.

Applies to