TextView.SetMaxHeight(Int32) Method
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 height of the TextView to be at most maxPixels
tall.
[Android.Runtime.Register("setMaxHeight", "(I)V", "GetSetMaxHeight_IHandler")]
public virtual void SetMaxHeight (int maxPixels);
[<Android.Runtime.Register("setMaxHeight", "(I)V", "GetSetMaxHeight_IHandler")>]
abstract member SetMaxHeight : int -> unit
override this.SetMaxHeight : int -> unit
- maxPixels
- Int32
the maximum height of TextView in terms of pixels
- Attributes
Sets the height of the TextView to be at most maxPixels
tall.
This value is used for height calculation if LayoutParams does not force TextView to have an exact height. Setting this value overrides previous maximum height configurations such as #setMaxLines(int)
or #setLines(int)
.
Java documentation for android.widget.TextView.setMaxHeight(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.
Produkt | Wersje |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |