語言

LineBreakConfig.HyphenationUnspecified 欄位

定義

警告

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

沒有指定連字號偏好。

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

欄位值

Value = -1

實作

屬性

備註

沒有指定連字號偏好。

這是連字偏好的特殊值,表示不指定連字偏好。 當以另一個 LineBreakConfig 函Builder#merge(LineBreakConfig)式覆寫 a LineBreakConfig 時,若覆寫設定的連字偏好為 #HYPHENATION_UNSPECIFIED,則覆寫設定的連字偏好會被保留。

val override = LineBreakConfig.Builder()
                     .setLineBreakWordStyle(LineBreakConfig.LINE_BREAK_WORD_STYLE_PHRASE)
                     .build();  // UNSPECIFIED if no setHyphenation is called.
                val config = LineBreakConfig.Builder()
                     .setHyphenation(LineBreakConfig.HYPHENATION_DISABLED)
                     .merge(override)
                     .build()
                // Here, config has HYPHENATION_DISABLED for line break config and
                // LINE_BREAK_WORD_STYLE_PHRASE for line break word style.

如果這個值用於文字版面/渲染,這個值會被解析為 #HYPHENATION_ENABLED 。

Java 文件 android.graphics.text.LineBreakConfig.HYPHENATION_UNSPECIFIED。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於