語言

LineBreaker.Builder.SetUseBoundsForWidth(Boolean) 方法

定義

設定為 true,使用邊界框寬度作為自動換行的來源。

[Android.Runtime.Register("setUseBoundsForWidth", "(Z)Landroid/graphics/text/LineBreaker$Builder;", "", ApiSince=35)]
public Android.Graphics.Text.LineBreaker.Builder SetUseBoundsForWidth(bool useBoundsForWidth);
[<Android.Runtime.Register("setUseBoundsForWidth", "(Z)Landroid/graphics/text/LineBreaker$Builder;", "", ApiSince=35)>]
member this.SetUseBoundsForWidth : bool -> Android.Graphics.Text.LineBreaker.Builder

參數

useBoundsForWidth
Boolean

使用邊界盒時為真,對前進則為假。

傳回

這個建構者實例。 這個值不可能為零值。

屬性

備註

設定為 true,使用邊界框寬度作為自動換行的來源。 若此值為假,自動換行將將總前進數當作文字寬度。 設定為 true 時,它會將所有連接的字形邊界寬度視為文字的寬度。 如果字型的字形有負方位 X,或其 xMax 大於前進,字形裁切可能是因為繪圖區域較大。 將此設定為 true,換行器會根據邊界框斷線,從而避免裁切。

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

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

適用於