Compartir a través de


View.ComputeVerticalScrollOffset Method

Definition

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

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

Returns

the vertical offset of the scrollbar's thumb

Attributes

Remarks

Compute the vertical offset of the vertical 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 #computeVerticalScrollRange() and #computeVerticalScrollExtent().

The default offset is the scroll offset of this view.

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

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