VsTextViewClass::SetScrollPosition Method (Int32, Int32)
Visual Studio 2015
Sets the core text editor's scroll bar settings for the specified scroll bar.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
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::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: