ScrollPresenter.ScrollTo 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.
Overloads
ScrollTo(Double, Double) |
Asynchronously scrolls to the specified offsets with animations enabled and snap points respected. |
ScrollTo(Double, Double, ScrollingScrollOptions) |
Asynchronously scrolls to the specified offsets with the specified animation and snap point modes. |
ScrollTo(Double, Double)
Asynchronously scrolls to the specified offsets with animations enabled and snap points respected.
public:
virtual int ScrollTo(double horizontalOffset, double verticalOffset) = ScrollTo;
/// [Windows.Foundation.Metadata.Overload("ScrollTo")]
int ScrollTo(double const& horizontalOffset, double const& verticalOffset);
[Windows.Foundation.Metadata.Overload("ScrollTo")]
public int ScrollTo(double horizontalOffset, double verticalOffset);
function scrollTo(horizontalOffset, verticalOffset)
Public Function ScrollTo (horizontalOffset As Double, verticalOffset As Double) As Integer
Parameters
- horizontalOffset
-
Double
double
The horizontal offset to scroll to.
- verticalOffset
-
Double
double
The vertical offset to scroll to.
Returns
int
A correlation ID number used to associate this method call with corresponding events.
- Attributes
Applies to
ScrollTo(Double, Double, ScrollingScrollOptions)
Asynchronously scrolls to the specified offsets with the specified animation and snap point modes.
/// [Windows.Foundation.Metadata.Overload("ScrollToWithOptions")]
int ScrollTo(double const& horizontalOffset, double const& verticalOffset, ScrollingScrollOptions const& options);
[Windows.Foundation.Metadata.Overload("ScrollToWithOptions")]
public int ScrollTo(double horizontalOffset, double verticalOffset, ScrollingScrollOptions options);
function scrollTo(horizontalOffset, verticalOffset, options)
Public Function ScrollTo (horizontalOffset As Double, verticalOffset As Double, options As ScrollingScrollOptions) As Integer
Parameters
- horizontalOffset
-
Double
double
The horizontal offset to scroll to.
- verticalOffset
-
Double
double
The vertical offset to scroll to.
- options
- ScrollingScrollOptions
Options that specify whether or not animations are enabled and snap points are respected.
Returns
int
A correlation ID number used to associate this method call with corresponding events.
- Attributes