Share via


View.ComputeHorizontalScrollOffset Method

Definition

Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal range.

[Android.Runtime.Register("computeHorizontalScrollOffset", "()I", "GetComputeHorizontalScrollOffsetHandler")]
protected virtual int ComputeHorizontalScrollOffset ();
[<Android.Runtime.Register("computeHorizontalScrollOffset", "()I", "GetComputeHorizontalScrollOffsetHandler")>]
abstract member ComputeHorizontalScrollOffset : unit -> int
override this.ComputeHorizontalScrollOffset : unit -> int

Returns

the horizontal offset of the scrollbar's thumb

Attributes

Remarks

Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal range. This value is used to compute the position of the thumb within the scrollbar's track.

The range is expressed in arbitrary units that must be the same as the units used by #computeHorizontalScrollRange() and #computeHorizontalScrollExtent().

The default offset is the scroll offset of this view.

Java documentation for android.view.View.computeHorizontalScrollOffset().

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.

Applies to

See also