VsTextViewClass.SetScrollPosition(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the core text editor's scroll bar settings for the specified scroll bar.
public:
virtual int SetScrollPosition(int iBar, int iFirstVisibleUnit) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::SetScrollPosition;
public:
virtual int SetScrollPosition(int iBar, int iFirstVisibleUnit);
public:
virtual int SetScrollPosition(int iBar, int iFirstVisibleUnit) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::SetScrollPosition;
virtual int SetScrollPosition(int iBar, int iFirstVisibleUnit);
public virtual int SetScrollPosition (int iBar, int iFirstVisibleUnit);
abstract member SetScrollPosition : int * int -> int
override this.SetScrollPosition : int * int -> int
Public Overridable Function SetScrollPosition (iBar As Integer, iFirstVisibleUnit As Integer) As Integer
Parameters
- iBar
- 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
- Int32
[in] First visible unit for the scroll bar.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.