Compartir a través de


Source.OnHiddenRegionChange Method

Definition

Called when a hidden region has changed.

public:
 virtual void OnHiddenRegionChange(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion ^ region, Microsoft::VisualStudio::TextManager::Interop::HIDDEN_REGION_EVENT evt, int fBufferModifiable);
public:
 virtual void OnHiddenRegionChange(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion ^ region, Microsoft::VisualStudio::TextManager::Interop::HIDDEN_REGION_EVENT evt, int fBufferModifiable);
 virtual void OnHiddenRegionChange(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion const & region, Microsoft::VisualStudio::TextManager::Interop::HIDDEN_REGION_EVENT evt, int fBufferModifiable);
public virtual void OnHiddenRegionChange (Microsoft.VisualStudio.TextManager.Interop.IVsHiddenRegion region, Microsoft.VisualStudio.TextManager.Interop.HIDDEN_REGION_EVENT evt, int fBufferModifiable);
abstract member OnHiddenRegionChange : Microsoft.VisualStudio.TextManager.Interop.IVsHiddenRegion * Microsoft.VisualStudio.TextManager.Interop.HIDDEN_REGION_EVENT * int -> unit
override this.OnHiddenRegionChange : Microsoft.VisualStudio.TextManager.Interop.IVsHiddenRegion * Microsoft.VisualStudio.TextManager.Interop.HIDDEN_REGION_EVENT * int -> unit
Public Overridable Sub OnHiddenRegionChange (region As IVsHiddenRegion, evt As HIDDEN_REGION_EVENT, fBufferModifiable As Integer)

Parameters

region
IVsHiddenRegion

An IVsHiddenRegion object representing the hidden region that has changed.

evt
HIDDEN_REGION_EVENT

A value from the HIDDEN_REGION_EVENT enumeration describing how the region has changed.

fBufferModifiable
Int32

Nonzero if it is safe to change the source buffer as a result of the change; otherwise, the source buffer must remain untouched.

Implements

Remarks

This method is called whenever a hidden region is changed. This does not include changes made to the state of the hidden region.

This is an implementation of IVsHiddenTextClient's OnHiddenRegionChange method.

The base method does nothing.

Outlining in a Legacy Language Service for more information about hidden regions.

Applies to