View.ScrollX Property
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.
Return the scrolled left position of this view. -or- Set the horizontal scrolled position of your view.
public int ScrollX { [Android.Runtime.Register("getScrollX", "()I", "")] get; [Android.Runtime.Register("setScrollX", "(I)V", "GetSetScrollX_IHandler")] set; }
[<get: Android.Runtime.Register("getScrollX", "()I", "")>]
[<set: Android.Runtime.Register("setScrollX", "(I)V", "GetSetScrollX_IHandler")>]
member this.ScrollX : int with get, set
Property Value
The left edge of the displayed part of your view, in pixels.
- Attributes
Remarks
Property getter documentation:
Return the scrolled left position of this view. This is the left edge of the displayed part of your view. You do not need to draw any pixels farther left, since those are outside of the frame of your view on screen.
Java documentation for android.view.View.getScrollX()
.
Property setter documentation:
Set the horizontal scrolled position of your view. This will cause a call to #onScrollChanged(int, int, int, int)
and the view will be invalidated.
Java documentation for android.view.View.setScrollX(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.