StaticLayout.Builder.SetMaxLines(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.
Set maximum number of lines.
[Android.Runtime.Register("setMaxLines", "(I)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)]
public Android.Text.StaticLayout.Builder SetMaxLines(int maxLines);
[<Android.Runtime.Register("setMaxLines", "(I)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)>]
member this.SetMaxLines : int -> Android.Text.StaticLayout.Builder
Parameters
- maxLines
- Int32
maximum number of lines in the layout. Value is 0 or greater
Returns
this builder, useful for chaining. This value cannot be null.
- Attributes
Remarks
Set maximum number of lines. This is particularly useful in the case of ellipsizing, where it changes the layout of the last line. The default is unlimited.
Android reference for android.text.StaticLayout.Builder.setMaxLines.
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.