TextView.SetMaxEms(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.