다음을 통해 공유


TextView.SetEms(Int32) Method

Definition

Sets the width of the TextView to be exactly ems wide.

[Android.Runtime.Register("setEms", "(I)V", "GetSetEms_IHandler")]
public virtual void SetEms (int ems);
[<Android.Runtime.Register("setEms", "(I)V", "GetSetEms_IHandler")>]
abstract member SetEms : int -> unit
override this.SetEms : int -> unit

Parameters

ems
Int32

the exact width of the TextView in terms of ems

Attributes

Remarks

Sets the width of the TextView to be exactly ems wide.

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

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

See also