Udostępnij za pośrednictwem


ViewStructure.SetMaxTextEms(Int32) Method

Definition

Sets the maximum width in ems of the text associated with this view, when supported.

[Android.Runtime.Register("setMaxTextEms", "(I)V", "GetSetMaxTextEms_IHandler", ApiSince=28)]
public virtual void SetMaxTextEms (int maxEms);
[<Android.Runtime.Register("setMaxTextEms", "(I)V", "GetSetMaxTextEms_IHandler", ApiSince=28)>]
abstract member SetMaxTextEms : int -> unit
override this.SetMaxTextEms : int -> unit

Parameters

maxEms
Int32
Attributes

Remarks

Sets the maximum width in ems of the text associated with this view, when supported.

Should only be set when the node is used for autofill purposes - it will be ignored when used for Assist.

Java documentation for android.view.ViewStructure.setMaxTextEms(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