Partager via


Source.OnHiddenRegionChange Method

Called when a hidden region has changed.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Sub OnHiddenRegionChange ( _
    region As IVsHiddenRegion, _
    evt As HIDDEN_REGION_EVENT, _
    fBufferModifiable As Integer _
)
public virtual void OnHiddenRegionChange(
    IVsHiddenRegion region,
    HIDDEN_REGION_EVENT evt,
    int fBufferModifiable
)
public:
virtual void OnHiddenRegionChange(
    IVsHiddenRegion^ region, 
    HIDDEN_REGION_EVENT evt, 
    int fBufferModifiable
)
abstract OnHiddenRegionChange : 
        region:IVsHiddenRegion * 
        evt:HIDDEN_REGION_EVENT * 
        fBufferModifiable:int -> unit  
override OnHiddenRegionChange : 
        region:IVsHiddenRegion * 
        evt:HIDDEN_REGION_EVENT * 
        fBufferModifiable:int -> unit
public function OnHiddenRegionChange(
    region : IVsHiddenRegion, 
    evt : HIDDEN_REGION_EVENT, 
    fBufferModifiable : int
)

Parameters

  • fBufferModifiable
    Type: 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

IVsHiddenTextClient.OnHiddenRegionChange(IVsHiddenRegion, HIDDEN_REGION_EVENT, Int32)

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 (Managed Package Framework) for more information about hidden regions.

.NET Framework Security

See Also

Reference

Source Class

Microsoft.VisualStudio.Package Namespace

Other Resources

Outlining (Managed Package Framework)