Partager via


StaticLayout Constructors

Definition

Overloads

StaticLayout(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

StaticLayout(ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)

Used by DynamicLayout.

StaticLayout(String, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)
StaticLayout(ICharSequence, Int32, Int32, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)

Used by DynamicLayout.

StaticLayout(String, Int32, Int32, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)
StaticLayout(ICharSequence, Int32, Int32, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean, TextUtils+TruncateAt, Int32)

Used by DynamicLayout.

StaticLayout(String, Int32, Int32, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean, TextUtils+TruncateAt, Int32)

StaticLayout(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected StaticLayout (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Text.StaticLayout : nativeint * Android.Runtime.JniHandleOwnership -> Android.Text.StaticLayout

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

StaticLayout(ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)

Used by DynamicLayout.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")]
public StaticLayout (Java.Lang.ICharSequence? source, Android.Text.TextPaint? paint, int width, Android.Text.Layout.Alignment? align, float spacingmult, float spacingadd, bool includepad);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")>]
new Android.Text.StaticLayout : Java.Lang.ICharSequence * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool -> Android.Text.StaticLayout

Parameters

source
ICharSequence
paint
TextPaint
width
Int32
spacingmult
Single
spacingadd
Single
includepad
Boolean
Attributes

Remarks

Java documentation for android.text.StaticLayout.StaticLayout(java.lang.CharSequence).

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

StaticLayout(String, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")]
public StaticLayout (string? source, Android.Text.TextPaint? paint, int width, Android.Text.Layout.Alignment? align, float spacingmult, float spacingadd, bool includepad);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")>]
new Android.Text.StaticLayout : string * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool -> Android.Text.StaticLayout

Parameters

source
String
paint
TextPaint
width
Int32
spacingmult
Single
spacingadd
Single
includepad
Boolean
Attributes

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

StaticLayout(ICharSequence, Int32, Int32, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)

Used by DynamicLayout.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")]
public StaticLayout (Java.Lang.ICharSequence? source, int bufstart, int bufend, Android.Text.TextPaint? paint, int outerwidth, Android.Text.Layout.Alignment? align, float spacingmult, float spacingadd, bool includepad);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")>]
new Android.Text.StaticLayout : Java.Lang.ICharSequence * int * int * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool -> Android.Text.StaticLayout

Parameters

source
ICharSequence
bufstart
Int32
bufend
Int32
paint
TextPaint
outerwidth
Int32
spacingmult
Single
spacingadd
Single
includepad
Boolean
Attributes

Remarks

Java documentation for android.text.StaticLayout.StaticLayout(java.lang.CharSequence).

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

StaticLayout(String, Int32, Int32, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")]
public StaticLayout (string? source, int bufstart, int bufend, Android.Text.TextPaint? paint, int outerwidth, Android.Text.Layout.Alignment? align, float spacingmult, float spacingadd, bool includepad);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")>]
new Android.Text.StaticLayout : string * int * int * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool -> Android.Text.StaticLayout

Parameters

source
String
bufstart
Int32
bufend
Int32
paint
TextPaint
outerwidth
Int32
spacingmult
Single
spacingadd
Single
includepad
Boolean
Attributes

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

StaticLayout(ICharSequence, Int32, Int32, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean, TextUtils+TruncateAt, Int32)

Used by DynamicLayout.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZLandroid/text/TextUtils$TruncateAt;I)V", "")]
public StaticLayout (Java.Lang.ICharSequence? source, int bufstart, int bufend, Android.Text.TextPaint? paint, int outerwidth, Android.Text.Layout.Alignment? align, float spacingmult, float spacingadd, bool includepad, Android.Text.TextUtils.TruncateAt? ellipsize, int ellipsizedWidth);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZLandroid/text/TextUtils$TruncateAt;I)V", "")>]
new Android.Text.StaticLayout : Java.Lang.ICharSequence * int * int * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool * Android.Text.TextUtils.TruncateAt * int -> Android.Text.StaticLayout

Parameters

source
ICharSequence
bufstart
Int32
bufend
Int32
paint
TextPaint
outerwidth
Int32
spacingmult
Single
spacingadd
Single
includepad
Boolean
ellipsizedWidth
Int32
Attributes

Remarks

Java documentation for android.text.StaticLayout.StaticLayout(java.lang.CharSequence).

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

StaticLayout(String, Int32, Int32, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean, TextUtils+TruncateAt, Int32)

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZLandroid/text/TextUtils$TruncateAt;I)V", "")]
public StaticLayout (string? source, int bufstart, int bufend, Android.Text.TextPaint? paint, int outerwidth, Android.Text.Layout.Alignment? align, float spacingmult, float spacingadd, bool includepad, Android.Text.TextUtils.TruncateAt? ellipsize, int ellipsizedWidth);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;IILandroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZLandroid/text/TextUtils$TruncateAt;I)V", "")>]
new Android.Text.StaticLayout : string * int * int * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool * Android.Text.TextUtils.TruncateAt * int -> Android.Text.StaticLayout

Parameters

source
String
bufstart
Int32
bufend
Int32
paint
TextPaint
outerwidth
Int32
spacingmult
Single
spacingadd
Single
includepad
Boolean
ellipsizedWidth
Int32
Attributes

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