View.ComputeHorizontalScrollRange Method

Definition

Compute the horizontal range that the horizontal scrollbar represents.

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

Returns

the total horizontal range represented by the horizontal scrollbar

Attributes

Remarks

Compute the horizontal range that the horizontal scrollbar represents.

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

The default range is the drawing width of this view.

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

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