Język

MeasuredText.Builder.AppendStyleRun Method

Definition

Overloads

Name Description
AppendStyleRun(Paint, Int32, Boolean)

Apply styles to the given length.

AppendStyleRun(Paint, LineBreakConfig, Int32, Boolean)

Apply styles to the given length.

AppendStyleRun(Paint, Int32, Boolean)

Apply styles to the given length.

[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

Parameters

paint
Paint

a paint. This value cannot be null.

length
Int32

The positive number of UTF-16 code units to style, starting at the current offset. The run must not extend past the end of the paragraph.

isRtl
Boolean

true if the text is in RTL context, otherwise false.

Returns

This builder instance, with its current offset advanced by length UTF-16 code units.

Attributes

Remarks

Apply styles to the given length. Keeps an internal offset which increases at every append. The initial value for this offset is zero. After the style is applied the internal offset is moved to offset + length, and next call will start from this new position.

Paint.TEXT_RUN_FLAG_RIGHT_EDGE and Paint.TEXT_RUN_FLAG_LEFT_EDGE are ignored and treated as both of them are set.

Android reference for android.graphics.text.MeasuredText.Builder.appendStyleRun.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

AppendStyleRun(Paint, LineBreakConfig, Int32, Boolean)

Apply styles to the given length.

[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

Parameters

paint
Paint

a paint. This value cannot be null.

lineBreakConfig
LineBreakConfig

a line break configuration. This value may be null.

length
Int32

The positive number of UTF-16 code units to style, starting at the current offset. The run must not extend past the end of the paragraph.

isRtl
Boolean

true if the text is in RTL context, otherwise false.

Returns

This builder instance, with its current offset advanced by length UTF-16 code units.

Attributes

Remarks

Apply styles to the given length. Keeps an internal offset which increases at every append. The initial value for this offset is zero. After the style is applied the internal offset is moved to offset + length, and next call will start from this new position.

Android reference for android.graphics.text.MeasuredText.Builder.appendStyleRun.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to