Udostępnij za pośrednictwem


IVsTextViewEvents.OnChangeScrollInfo Method

Notifies a client when the scrolling information is changed.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
Sub OnChangeScrollInfo ( _
    pView As IVsTextView, _
    iBar As Integer, _
    iMinUnit As Integer, _
    iMaxUnits As Integer, _
    iVisibleUnits As Integer, _
    iFirstVisibleUnit As Integer _
)
void OnChangeScrollInfo(
    IVsTextView pView,
    int iBar,
    int iMinUnit,
    int iMaxUnits,
    int iVisibleUnits,
    int iFirstVisibleUnit
)
void OnChangeScrollInfo(
    [InAttribute] IVsTextView^ pView, 
    [InAttribute] int iBar, 
    [InAttribute] int iMinUnit, 
    [InAttribute] int iMaxUnits, 
    [InAttribute] int iVisibleUnits, 
    [InAttribute] int iFirstVisibleUnit
)
abstract OnChangeScrollInfo : 
        pView:IVsTextView * 
        iBar:int * 
        iMinUnit:int * 
        iMaxUnits:int * 
        iVisibleUnits:int * 
        iFirstVisibleUnit:int -> unit 
function OnChangeScrollInfo(
    pView : IVsTextView, 
    iBar : int, 
    iMinUnit : int, 
    iMaxUnits : int, 
    iVisibleUnits : int, 
    iFirstVisibleUnit : int
)

Parameters

  • iBar
    Type: System.Int32
    [in] Integer value referring to the bar.
  • iMinUnit
    Type: System.Int32
    [in] Integer value for the minimum units.
  • iMaxUnits
    Type: System.Int32
    [in] Integer value for the maximum units.
  • iVisibleUnits
    Type: System.Int32
    [in] Integer value for the visible units.
  • iFirstVisibleUnit
    Type: System.Int32
    [in] Integer value for the first visible unit.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextViewEvents::OnChangeScrollInfo(
   [in] IVsTextView *pView,
   [in] long iBar,
   [in] long iMinUnit,
   [in] long iMaxUnits,
   [in] long iVisibleUnits,
   [in] long iFirstVisibleUnit
);

The reference count is not incremented when you obtain a pointer to IVsTextView; if you want to keep it, call AddRef on it explicitly.

.NET Framework Security

See Also

Reference

IVsTextViewEvents Interface

Microsoft.VisualStudio.TextManager.Interop Namespace