語言

MeasuredText.Builder.AppendStyleRun 方法

定義

多載

名稱 Description
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

一把油漆。 這個值不可能為零值。

length
Int32

從當前偏移量開始,樣式的 UTF-16 碼單位數為正數。 連載不得超過段落結束。

isRtl
Boolean

若文字在 RTL 上下文中為真,否則為假。

傳回

此建構實例,目前偏移 length 量為 UTF-16 碼單位。

屬性

備註

對指定長度套用樣式。 保持內部偏移,且每增加一個附加部分。 此偏移的初始值為零。 套用樣式後,內部偏移移量會移至偏移 + 長度,下一次通話將從此新位置開始。

Paint.TEXT_RUN_FLAG_RIGHT_EDGE和Paint.TEXT_RUN_FLAG_LEFT_EDGE都被忽略,當作兩人都已定型。

Android 參考資料。android.graphics.text.MeasuredText.Builder.appendStyleRun

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

適用於

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

一把油漆。 這個值不可能為零值。

lineBreakConfig
LineBreakConfig

換行配置。 這個值可能是 Null。

length
Int32

從當前偏移量開始,樣式的 UTF-16 碼單位數為正數。 連載不得超過段落結束。

isRtl
Boolean

若文字在 RTL 上下文中為真,否則為假。

傳回

此建構實例,目前偏移 length 量為 UTF-16 碼單位。

屬性

備註

對指定長度套用樣式。 保持內部偏移,且每增加一個附加部分。 此偏移的初始值為零。 套用樣式後,內部偏移移量會移至偏移 + 長度,下一次通話將從此新位置開始。

Android 參考資料。android.graphics.text.MeasuredText.Builder.appendStyleRun

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

適用於