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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
‘선언
Public Overridable Sub OnChangeScrollInfo ( _
view As IVsTextView, _
iBar As Integer, _
iMinUnit As Integer, _
iMaxUnits As Integer, _
iVisibleUnits As Integer, _
iFirstVisibleUnit As Integer _
)
‘사용 방법
Dim instance As ViewFilter
Dim view As IVsTextView
Dim iBar As Integer
Dim iMinUnit As Integer
Dim iMaxUnits As Integer
Dim iVisibleUnits As Integer
Dim iFirstVisibleUnit As Integer
instance.OnChangeScrollInfo(view, iBar, _
iMinUnit, iMaxUnits, iVisibleUnits, _
iFirstVisibleUnit)
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
- view
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
[in] An IVsTextView object representing the view that owns the scroll bar.
- iBar
Type: System.Int32
[in] The scroll bar ID: SB_VERT for the vertical bar and SB_HORZ for the horizontal bar.
- iMinUnit
Type: System.Int32
[in] The new minimum value for the scroll bar (typically in lines).
- iMaxUnits
Type: System.Int32
[in] The new maximum value for the scroll bar (typically in lines).
- iVisibleUnits
Type: System.Int32
[in] The new value representing the number of visible lines in the scroll bar (affects the size of the scroll thumb).
- iFirstVisibleUnit
Type: System.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
- 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.