MeasuredText.GetWidth(Int32, Int32) Method

Definition

Returns the width of a given range.

[Android.Runtime.Register("getWidth", "(II)F", "GetGetWidth_IIHandler", ApiSince=29)]
public virtual float GetWidth (int start, int end);
[<Android.Runtime.Register("getWidth", "(II)F", "GetGetWidth_IIHandler", ApiSince=29)>]
abstract member GetWidth : int * int -> single
override this.GetWidth : int * int -> single

Parameters

start
Int32

an inclusive start index of the range

end
Int32

an exclusive end index of the range

Returns

Attributes

Remarks

Returns the width of a given range.

Java documentation for android.graphics.text.MeasuredText.getWidth(int, 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