共用方式為


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 屬性授權中所述的詞彙使用。

適用於