Partager via


ViewFilter.OnChangeScrollInfo Method

Called when the scroll information for the specified scroll bar has changed.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.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)

Syntax

'Declaration
Public Overridable Sub OnChangeScrollInfo ( _
    view As IVsTextView, _
    iBar As Integer, _
    iMinUnit As Integer, _
    iMaxUnits As Integer, _
    iVisibleUnits As Integer, _
    iFirstVisibleUnit As Integer _
)
public virtual void OnChangeScrollInfo(
    IVsTextView view,
    int iBar,
    int iMinUnit,
    int iMaxUnits,
    int iVisibleUnits,
    int iFirstVisibleUnit
)
public:
virtual void OnChangeScrollInfo(
    IVsTextView^ view, 
    int iBar, 
    int iMinUnit, 
    int iMaxUnits, 
    int iVisibleUnits, 
    int iFirstVisibleUnit
)
abstract OnChangeScrollInfo : 
        view:IVsTextView * 
        iBar:int * 
        iMinUnit:int * 
        iMaxUnits:int * 
        iVisibleUnits:int * 
        iFirstVisibleUnit:int -> unit  
override OnChangeScrollInfo : 
        view:IVsTextView * 
        iBar:int * 
        iMinUnit:int * 
        iMaxUnits:int * 
        iVisibleUnits:int * 
        iFirstVisibleUnit:int -> unit
public function OnChangeScrollInfo(
    view : IVsTextView, 
    iBar : int, 
    iMinUnit : int, 
    iMaxUnits : int, 
    iVisibleUnits : int, 
    iFirstVisibleUnit : int
)

Parameters

  • iBar
    Type: Int32

    [in] The scroll bar ID: SB_VERT for the vertical bar and SB_HORZ for the horizontal bar.

  • iMinUnit
    Type: Int32

    [in] The new minimum value for the scroll bar (typically in lines).

  • iMaxUnits
    Type: Int32

    [in] The new maximum value for the scroll bar (typically in lines).

  • iVisibleUnits
    Type: Int32

    [in] The new value representing the number of visible lines in the scroll bar (affects the size of the scroll thumb).

  • iFirstVisibleUnit
    Type: Int32

    [in] The new value for the first visible line in the scroll bar (affects the position of the scroll thumb).

Implements

IVsTextViewEvents.OnChangeScrollInfo(IVsTextView, Int32, Int32, Int32, Int32, Int32)

Remarks

This method is called when the scroll bar information changes, typically due to the associated source file being changed. If your language service needs to adapt to a changing scroll view then you must derive a class from the ViewFilter class and override this method.

This method is an implementation of the OnChangeScrollInfo method on the IVsTextViewEvents interface.

The base method does nothing.

.NET Framework Security

See Also

Reference

ViewFilter Class

Microsoft.VisualStudio.Package Namespace