Condividi tramite


VsTextViewClass.SetScrollPosition Method

Sets the core text editor's scroll bar settings for the specified scroll bar.

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

Syntax

'Declaration
Public Overridable Function SetScrollPosition ( _
    iBar As Integer, _
    iFirstVisibleUnit As Integer _
) As Integer
public virtual int SetScrollPosition(
    int iBar,
    int iFirstVisibleUnit
)
public:
virtual int SetScrollPosition(
    [InAttribute] int iBar, 
    [InAttribute] int iFirstVisibleUnit
)
abstract SetScrollPosition : 
        iBar:int * 
        iFirstVisibleUnit:int -> int  
override SetScrollPosition : 
        iBar:int * 
        iFirstVisibleUnit:int -> int
public function SetScrollPosition(
    iBar : int, 
    iFirstVisibleUnit : int
) : int

Parameters

  • iBar
    Type: System.Int32

    [in] Specifies a horizontal or vertical scroll bar. Values may be either SB_HORZ or SB_VERT. For more information, see GetScrollInfo in the Platform SDK.

  • iFirstVisibleUnit
    Type: System.Int32

    [in] First visible unit for the scroll bar.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTextView.SetScrollPosition(Int32, Int32)

.NET Framework Security

See Also

Reference

VsTextViewClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace