Język

StaticLayout.Builder.Obtain Method

Definition

Overloads

Name Description
Obtain(ICharSequence, Int32, Int32, TextPaint, Int32)

Obtain a builder for constructing StaticLayout objects.

Obtain(String, Int32, Int32, TextPaint, Int32)

Obtain(ICharSequence, Int32, Int32, TextPaint, Int32)

Obtain a builder for constructing StaticLayout objects.

[Android.Runtime.Register("obtain", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)]
public static Android.Text.StaticLayout.Builder Obtain(Java.Lang.ICharSequence source, int start, int end, Android.Text.TextPaint paint, int width);
[<Android.Runtime.Register("obtain", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)>]
static member Obtain : Java.Lang.ICharSequence * int * int * Android.Text.TextPaint * int -> Android.Text.StaticLayout.Builder

Parameters

source
ICharSequence

The text to be laid out, optionally with spans. This value cannot be null.

start
Int32

The index of the start of the text. Value is 0 or greater

end
Int32

The index + 1 of the end of the text. Value is 0 or greater

paint
TextPaint

The base paint used for layout. This value cannot be null.

width
Int32

The width in pixels. Value is 0 or greater

Returns

a builder object used for constructing the StaticLayout. This value cannot be null.

Attributes

Remarks

Obtain a builder for constructing StaticLayout objects.

Android reference for android.text.StaticLayout.Builder.obtain.

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

Obtain(String, Int32, Int32, TextPaint, Int32)

public static Android.Text.StaticLayout.Builder Obtain(string source, int start, int end, Android.Text.TextPaint paint, int width);
static member Obtain : string * int * int * Android.Text.TextPaint * int -> Android.Text.StaticLayout.Builder

Parameters

source
String
start
Int32
end
Int32
paint
TextPaint
width
Int32

Returns

Remarks

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