共用方式為


ScrollViewer.ScrollToHorizontalOffset(Double) 方法

定義

注意

scrollToHorizontalOffset 可能會在 Windows 8.1 之後變更或無法使用。 請改用 ChangeView

ScrollViewer 內的內容捲動至指定的水準位移位置。

public:
 virtual void ScrollToHorizontalOffset(double offset) = ScrollToHorizontalOffset;
/// [Windows.Foundation.Metadata.Deprecated("ScrollToHorizontalOffset may be altered or unavailable for releases after Windows 8.1. Instead, use ChangeView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
void ScrollToHorizontalOffset(double const& offset);
[Windows.Foundation.Metadata.Deprecated("ScrollToHorizontalOffset may be altered or unavailable for releases after Windows 8.1. Instead, use ChangeView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
public void ScrollToHorizontalOffset(double offset);
function scrollToHorizontalOffset(offset)
Public Sub ScrollToHorizontalOffset (offset As Double)

參數

offset
Double

double

內容捲動的目標位置。

屬性

適用於