语言

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,则为 false(对于提前)。

返回

此生成器实例。 此值不能为 null。

特性

注解

将边界框的宽度设置为 true 作为自动换行源。 如果此值为 false,则自动换行符使用总分行量作为文本宽度。 通过设置 true,它使用联接的所有字形边框的宽度作为文本的宽度。 如果字体的字形具有负承载 X 或其 xMax 大于提前,则字形剪辑可能会发生,因为绘图区可能更大。 通过将此项设置为 true,换行符将基于边界框断行,因此可以阻止剪裁。

Android 参考。android.graphics.text.LineBreaker.Builder.setUseBoundsForWidth

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于