Share via


Layout.GetPrimaryHorizontal(Int32) Method

Definition

Get the primary horizontal position for the specified text offset.

[Android.Runtime.Register("getPrimaryHorizontal", "(I)F", "GetGetPrimaryHorizontal_IHandler")]
public virtual float GetPrimaryHorizontal (int offset);
[<Android.Runtime.Register("getPrimaryHorizontal", "(I)F", "GetGetPrimaryHorizontal_IHandler")>]
abstract member GetPrimaryHorizontal : int -> single
override this.GetPrimaryHorizontal : int -> single

Parameters

offset
Int32

Returns

Attributes

Remarks

Get the primary horizontal position for the specified text offset. This is the location where a new character would be inserted in the paragraph's primary direction.

Java documentation for android.text.Layout.getPrimaryHorizontal(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.

Applies to