LineBreaker.ComputeLineBreaks 方法

定义

将段落拆分为行。

[Android.Runtime.Register("computeLineBreaks", "(Landroid/graphics/text/MeasuredText;Landroid/graphics/text/LineBreaker$ParagraphConstraints;I)Landroid/graphics/text/LineBreaker$Result;", "GetComputeLineBreaks_Landroid_graphics_text_MeasuredText_Landroid_graphics_text_LineBreaker_ParagraphConstraints_IHandler", ApiSince=29)]
public virtual Android.Graphics.Text.LineBreaker.Result ComputeLineBreaks (Android.Graphics.Text.MeasuredText measuredPara, Android.Graphics.Text.LineBreaker.ParagraphConstraints constraints, int lineNumber);
[<Android.Runtime.Register("computeLineBreaks", "(Landroid/graphics/text/MeasuredText;Landroid/graphics/text/LineBreaker$ParagraphConstraints;I)Landroid/graphics/text/LineBreaker$Result;", "GetComputeLineBreaks_Landroid_graphics_text_MeasuredText_Landroid_graphics_text_LineBreaker_ParagraphConstraints_IHandler", ApiSince=29)>]
abstract member ComputeLineBreaks : Android.Graphics.Text.MeasuredText * Android.Graphics.Text.LineBreaker.ParagraphConstraints * int -> Android.Graphics.Text.LineBreaker.Result
override this.ComputeLineBreaks : Android.Graphics.Text.MeasuredText * Android.Graphics.Text.LineBreaker.ParagraphConstraints * int -> Android.Graphics.Text.LineBreaker.Result

参数

measuredPara
MeasuredText

文本度量的结果

constraints
LineBreaker.ParagraphConstraints

对于单个段落

lineNumber
Int32

此段落的行号

返回

属性

注解

适用于 . 的 android.graphics.text.LineBreaker.computeLineBreaks(android.graphics.text.MeasuredText, android.graphics.text.ParagraphConstraints, int)Java 文档

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

适用于