Compartir a través de


TextView.LineBreakStyle Property

Definition

Gets the current line-break style for text wrapping. -or- Sets the line-break style for text wrapping.

public virtual int LineBreakStyle { [Android.Runtime.Register("getLineBreakStyle", "()I", "GetGetLineBreakStyleHandler", ApiSince=33)] get; [Android.Runtime.Register("setLineBreakStyle", "(I)V", "GetSetLineBreakStyle_IHandler", ApiSince=33)] set; }
[<get: Android.Runtime.Register("getLineBreakStyle", "()I", "GetGetLineBreakStyleHandler", ApiSince=33)>]
[<set: Android.Runtime.Register("setLineBreakStyle", "(I)V", "GetSetLineBreakStyle_IHandler", ApiSince=33)>]
member this.LineBreakStyle : int with get, set

Property Value

The line-break style to be used for text wrapping.

Attributes

Remarks

Property getter documentation:

Gets the current line-break style for text wrapping.

Java documentation for android.widget.TextView.getLineBreakStyle().

Property setter documentation:

Sets the line-break style for text wrapping.

Line-break style specifies the line-break strategies that can be used for text wrapping. The line-break style affects rule-based line breaking by specifying the strictness of line-breaking rules.

The following are types of line-break styles: <ul> <li>LineBreakConfig#LINE_BREAK_STYLE_LOOSE<li>LineBreakConfig#LINE_BREAK_STYLE_NORMAL<li>LineBreakConfig#LINE_BREAK_STYLE_STRICT</ul>

The default line-break style is LineBreakConfig#LINE_BREAK_STYLE_NONE, which specifies that no line-breaking rules are used.

See the

line-break property for more information.

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