MeasuredText.Builder.AppendStyleRun 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| AppendStyleRun(Paint, Int32, Boolean) |
将样式应用于给定长度。 |
| AppendStyleRun(Paint, LineBreakConfig, Int32, Boolean) |
将样式应用于给定长度。 |
AppendStyleRun(Paint, Int32, Boolean)
将样式应用于给定长度。
[Android.Runtime.Register("appendStyleRun", "(Landroid/graphics/Paint;IZ)Landroid/graphics/text/MeasuredText$Builder;", "", ApiSince=29)]
public Android.Graphics.Text.MeasuredText.Builder AppendStyleRun(Android.Graphics.Paint paint, int length, bool isRtl);
[<Android.Runtime.Register("appendStyleRun", "(Landroid/graphics/Paint;IZ)Landroid/graphics/text/MeasuredText$Builder;", "", ApiSince=29)>]
member this.AppendStyleRun : Android.Graphics.Paint * int * bool -> Android.Graphics.Text.MeasuredText.Builder
参数
- paint
- Paint
一幅画。 此值不能为 null。
- length
- Int32
要设置样式的 UTF-16 代码单元的正数,从当前偏移量开始。 运行不能超过段落末尾。
- isRtl
- Boolean
如果文本位于 RTL 上下文中,则为 true,否则为 false。
返回
此生成器实例,其当前偏移量由 length UTF-16 代码单元高级。
- 特性
注解
将样式应用于给定长度。 保留每次追加时增加的内部偏移量。 此偏移量的初始值为零。 应用样式后,内部偏移量将移动到偏移量 + 长度,下一次调用将从此新位置开始。
将忽略Paint.TEXT_RUN_FLAG_RIGHT_EDGE和Paint.TEXT_RUN_FLAG_LEFT_EDGE并将其视为已设置这两者。
Android 参考。android.graphics.text.MeasuredText.Builder.appendStyleRun
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
AppendStyleRun(Paint, LineBreakConfig, Int32, Boolean)
将样式应用于给定长度。
[Android.Runtime.Register("appendStyleRun", "(Landroid/graphics/Paint;Landroid/graphics/text/LineBreakConfig;IZ)Landroid/graphics/text/MeasuredText$Builder;", "", ApiSince=33)]
public Android.Graphics.Text.MeasuredText.Builder AppendStyleRun(Android.Graphics.Paint paint, Android.Graphics.Text.LineBreakConfig? lineBreakConfig, int length, bool isRtl);
[<Android.Runtime.Register("appendStyleRun", "(Landroid/graphics/Paint;Landroid/graphics/text/LineBreakConfig;IZ)Landroid/graphics/text/MeasuredText$Builder;", "", ApiSince=33)>]
member this.AppendStyleRun : Android.Graphics.Paint * Android.Graphics.Text.LineBreakConfig * int * bool -> Android.Graphics.Text.MeasuredText.Builder
参数
- paint
- Paint
一幅画。 此值不能为 null。
- lineBreakConfig
- LineBreakConfig
换行符配置。 此值可能为 null。
- length
- Int32
要设置样式的 UTF-16 代码单元的正数,从当前偏移量开始。 运行不能超过段落末尾。
- isRtl
- Boolean
如果文本位于 RTL 上下文中,则为 true,否则为 false。
返回
此生成器实例,其当前偏移量由 length UTF-16 代码单元高级。
- 特性
注解
将样式应用于给定长度。 保留每次追加时增加的内部偏移量。 此偏移量的初始值为零。 应用样式后,内部偏移量将移动到偏移量 + 长度,下一次调用将从此新位置开始。
Android 参考。android.graphics.text.MeasuredText.Builder.appendStyleRun
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。