次の方法で共有


MeasuredText.GetCharWidthAt(Int32) Method

Definition

Returns the width of the character at the given offset.

[Android.Runtime.Register("getCharWidthAt", "(I)F", "GetGetCharWidthAt_IHandler", ApiSince=29)]
public virtual float GetCharWidthAt (int offset);
[<Android.Runtime.Register("getCharWidthAt", "(I)F", "GetGetCharWidthAt_IHandler", ApiSince=29)>]
abstract member GetCharWidthAt : int -> single
override this.GetCharWidthAt : int -> single

Parameters

offset
Int32

an offset of the character.

Returns

Attributes

Remarks

Returns the width of the character at the given offset.

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