Partager via


LineBreakConfig.LineBreakStyleNoBreak Field

Definition

Caution

This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakStyle enum directly instead of this field.

The line break style that used for preventing automatic line breaking.

[Android.Runtime.Register("LINE_BREAK_STYLE_NO_BREAK", ApiSince=35)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakStyle enum directly instead of this field.", true)]
public const Android.Graphics.Text.LineBreakStyle LineBreakStyleNoBreak = 4;
[<Android.Runtime.Register("LINE_BREAK_STYLE_NO_BREAK", ApiSince=35)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakStyle enum directly instead of this field.", true)>]
val mutable LineBreakStyleNoBreak : Android.Graphics.Text.LineBreakStyle

Field Value

Value = 4

Implements

Attributes

Remarks

The line break style that used for preventing automatic line breaking.

This is useful when you want to preserve some words in the same line by using android.text.style.LineBreakConfigSpan or android.text.style.LineBreakConfigSpan#createNoBreakSpan() as a shorthand. Note that even if this style is specified, the grapheme based line break is still performed for preventing clipping text.

Java documentation for android.graphics.text.LineBreakConfig.LINE_BREAK_STYLE_NO_BREAK.

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