Share via


TextView.SetMaxEms(Int32) Method

Definition

Sets the width of the TextView to be at most maxEms wide.

[Android.Runtime.Register("setMaxEms", "(I)V", "GetSetMaxEms_IHandler")]
public virtual void SetMaxEms (int maxEms);
[<Android.Runtime.Register("setMaxEms", "(I)V", "GetSetMaxEms_IHandler")>]
abstract member SetMaxEms : int -> unit
override this.SetMaxEms : int -> unit

Parameters

maxEms
Int32

the maximum width of TextView in terms of ems

Attributes

Remarks

Sets the width of the TextView to be at most maxEms wide.

This value is used for width calculation if LayoutParams does not force TextView to have an exact width. Setting this value overrides previous maximum width configurations such as #setMaxWidth(int) or #setWidth(int).

Java documentation for android.widget.TextView.setMaxEms(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