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
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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.