Share via


ScrollPresenter.ScrollTo Method

Definition

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

Int32

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

Int32

int

A correlation ID number used to associate this method call with corresponding events.

Attributes

Applies to