FMX.ScrollBox.TCustomPresentedScrollBox.ScrollTo
Delphi
procedure ScrollTo(const AX, AY: Single; const AAnimated: Boolean = True);
C++
void __fastcall ScrollTo(const float AX, const float AY, const bool AAnimated = true);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.ScrollBox.pas FMX.ScrollBox.hpp |
FMX.ScrollBox | TCustomPresentedScrollBox |
Description
Changes the scroll position to the value defined by AX
and AY
.
ScrollTo uses the value of the ViewportPosition property to calculate the offset and then calls ScrollBy.