Język

Layout.Builder Constructors

Definition

Overloads

Layout.Builder(ICharSequence, Int32, Int32, TextPaint, Int32)

Construct a builder class.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)V", "", ApiSince=35)]
public Builder(Java.Lang.ICharSequence text, int start, int end, Android.Text.TextPaint paint, int width);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)V", "", ApiSince=35)>]
new Android.Text.Layout.Builder : Java.Lang.ICharSequence * int * int * Android.Text.TextPaint * int -> Android.Text.Layout.Builder

Parameters

text
ICharSequence

a text to be displayed.

start
Int32

an inclusive start index of the text to be displayed.

end
Int32

an exclusive end index of the text to be displayed.

paint
TextPaint

a paint object to be used for drawing text.

width
Int32

a width constraint in pixels.

Attributes

Remarks

Construct a builder class.

Java documentation for android.text.Layout.Builder.Builder(java.lang.CharSequence, int, int, android.text.TextPaint, int).

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

Layout.Builder(String, Int32, Int32, TextPaint, Int32)

Construct a builder class.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)V", "", ApiSince=35)]
public Builder(string text, int start, int end, Android.Text.TextPaint paint, int width);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)V", "", ApiSince=35)>]
new Android.Text.Layout.Builder : string * int * int * Android.Text.TextPaint * int -> Android.Text.Layout.Builder

Parameters

text
String

a text to be displayed. This value cannot be null.

start
Int32

an inclusive start index of the text to be displayed. Value is 0 or greater

end
Int32

an exclusive end index of the text to be displayed. Value is 0 or greater

paint
TextPaint

a paint object to be used for drawing text. This value cannot be null.

width
Int32

a width constraint in pixels. Value is 0 or greater

Attributes

Remarks

Construct a builder class.

Android reference for android.text.Layout.Builder.Builder.

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