Partager via


Layout.GetLineWidth(Int32) Method

Definition

Gets the unsigned horizontal extent of the specified line, including leading margin indent and trailing whitespace.

[Android.Runtime.Register("getLineWidth", "(I)F", "GetGetLineWidth_IHandler")]
public virtual float GetLineWidth (int line);
[<Android.Runtime.Register("getLineWidth", "(I)F", "GetGetLineWidth_IHandler")>]
abstract member GetLineWidth : int -> single
override this.GetLineWidth : int -> single

Parameters

line
Int32

Returns

Attributes

Remarks

Gets the unsigned horizontal extent of the specified line, including leading margin indent and trailing whitespace.

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