語言

LineBreaker.Builder.SetJustificationMode(JustificationMode) 方法

定義

設定換行的對齊方式。

[Android.Runtime.Register("setJustificationMode", "(I)Landroid/graphics/text/LineBreaker$Builder;", "", ApiSince=29)]
public Android.Graphics.Text.LineBreaker.Builder SetJustificationMode(Android.Graphics.Text.JustificationMode justificationMode);
[<Android.Runtime.Register("setJustificationMode", "(I)Landroid/graphics/text/LineBreaker$Builder;", "", ApiSince=29)>]
member this.SetJustificationMode : Android.Graphics.Text.JustificationMode -> Android.Graphics.Text.LineBreaker.Builder

參數

justificationMode
JustificationMode

Value 為下列之一: None; InterWord; InterCharacter

傳回

這個建商實例。

屬性

備註

設定文本是否正當。 當設定 InterWord時,換行器會變更內部參數以進行對齊。 預設值為 None。

換行符不會繪製文字。 其原生對齊標誌對 啟用 InterWord,但對 則不 InterCharacter啟用。

Android 參考資料。android.graphics.text.LineBreaker.Builder.setJustificationMode

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

適用於