Udostępnij za pośrednictwem


ViewFilter.OnChangeScrollInfo Method

Definition

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

public:
 virtual void OnChangeScrollInfo(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view, int iBar, int iMinUnit, int iMaxUnits, int iVisibleUnits, int iFirstVisibleUnit);
public:
 virtual void OnChangeScrollInfo(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view, int iBar, int iMinUnit, int iMaxUnits, int iVisibleUnits, int iFirstVisibleUnit);
 virtual void OnChangeScrollInfo(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & view, int iBar, int iMinUnit, int iMaxUnits, int iVisibleUnits, int iFirstVisibleUnit);
public virtual void OnChangeScrollInfo (Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, int iBar, int iMinUnit, int iMaxUnits, int iVisibleUnits, int iFirstVisibleUnit);
abstract member OnChangeScrollInfo : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * int * int * int * int * int -> unit
override this.OnChangeScrollInfo : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * int * int * int * int * int -> unit
Public Overridable Sub OnChangeScrollInfo (view As IVsTextView, iBar As Integer, iMinUnit As Integer, iMaxUnits As Integer, iVisibleUnits As Integer, iFirstVisibleUnit As Integer)

Parameters

view
IVsTextView

[in] An IVsTextView object representing the view that owns the scroll bar.

iBar
Int32

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

iMinUnit
Int32

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

iMaxUnits
Int32

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

iVisibleUnits
Int32

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

iFirstVisibleUnit
Int32

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

Implements

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.

Applies to