Compartir a través de


BoringLayout Constructors

Definition

Overloads

BoringLayout(IntPtr, JniHandleOwnership)

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

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

BoringLayout(IntPtr, JniHandleOwnership)

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

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

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

BoringLayout(ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, BoringLayout+Metrics, Boolean)

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;Z)V", "")]
public BoringLayout (Java.Lang.ICharSequence? source, Android.Text.TextPaint? paint, int outerwidth, Android.Text.Layout.Alignment? align, float spacingMult, float spacingAdd, Android.Text.BoringLayout.Metrics? metrics, bool includePad);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;Z)V", "")>]
new Android.Text.BoringLayout : Java.Lang.ICharSequence * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * Android.Text.BoringLayout.Metrics * bool -> Android.Text.BoringLayout

Parameters

source
ICharSequence

the text to render

paint
TextPaint

the default paint for the layout

outerwidth
Int32

the wrapping width for the text

align
Layout.Alignment

whether to left, right, or center the text

spacingMult
Single

this value is no longer used by BoringLayout

spacingAdd
Single

this value is no longer used by BoringLayout

metrics
BoringLayout.Metrics

#Metrics instance that contains information about FontMetrics and line width

includePad
Boolean

set whether to include extra space beyond font ascent and descent which is needed to avoid clipping in some scripts

Attributes

Remarks

Java documentation for android.text.BoringLayout.BoringLayout(java.lang.CharSequence, android.text.TextPaint, int, android.text.Alignment, float, float, android.text.Metrics, boolean).

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

BoringLayout(String, TextPaint, Int32, Layout+Alignment, Single, Single, BoringLayout+Metrics, Boolean)

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;Z)V", "")]
public BoringLayout (string? source, Android.Text.TextPaint? paint, int outerwidth, Android.Text.Layout.Alignment? align, float spacingMult, float spacingAdd, Android.Text.BoringLayout.Metrics? metrics, bool includePad);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;Z)V", "")>]
new Android.Text.BoringLayout : string * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * Android.Text.BoringLayout.Metrics * bool -> Android.Text.BoringLayout

Parameters

source
String
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

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

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;I)V", "")]
public BoringLayout (Java.Lang.ICharSequence? source, Android.Text.TextPaint? paint, int outerWidth, Android.Text.Layout.Alignment? align, float spacingMult, float spacingAdd, Android.Text.BoringLayout.Metrics? metrics, bool includePad, Android.Text.TextUtils.TruncateAt? ellipsize, int ellipsizedWidth);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;I)V", "")>]
new Android.Text.BoringLayout : Java.Lang.ICharSequence * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * Android.Text.BoringLayout.Metrics * bool * Android.Text.TextUtils.TruncateAt * int -> Android.Text.BoringLayout

Parameters

source
ICharSequence

the text to render

paint
TextPaint

the default paint for the layout

outerWidth
Int32
align
Layout.Alignment

whether to left, right, or center the text

spacingMult
Single

this value is no longer used by BoringLayout

spacingAdd
Single

this value is no longer used by BoringLayout

metrics
BoringLayout.Metrics

#Metrics instance that contains information about FontMetrics and line width

includePad
Boolean

set whether to include extra space beyond font ascent and descent which is needed to avoid clipping in some scripts

ellipsizedWidth
Int32
Attributes

Remarks

Java documentation for android.text.BoringLayout.BoringLayout(java.lang.CharSequence, android.text.TextPaint, int, android.text.Alignment, float, float, android.text.Metrics, boolean).

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

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

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;I)V", "")]
public BoringLayout (string? source, Android.Text.TextPaint? paint, int outerWidth, Android.Text.Layout.Alignment? align, float spacingMult, float spacingAdd, Android.Text.BoringLayout.Metrics? metrics, bool includePad, Android.Text.TextUtils.TruncateAt? ellipsize, int ellipsizedWidth);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;I)V", "")>]
new Android.Text.BoringLayout : string * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * Android.Text.BoringLayout.Metrics * bool * Android.Text.TextUtils.TruncateAt * int -> Android.Text.BoringLayout

Parameters

source
String
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

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

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;IZ)V", "", ApiSince=33)]
public BoringLayout (Java.Lang.ICharSequence source, Android.Text.TextPaint paint, int outerWidth, Android.Text.Layout.Alignment align, float spacingMult, float spacingAdd, Android.Text.BoringLayout.Metrics metrics, bool includePad, Android.Text.TextUtils.TruncateAt? ellipsize, int ellipsizedWidth, bool useFallbackLineSpacing);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;IZ)V", "", ApiSince=33)>]
new Android.Text.BoringLayout : Java.Lang.ICharSequence * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * Android.Text.BoringLayout.Metrics * bool * Android.Text.TextUtils.TruncateAt * int * bool -> Android.Text.BoringLayout

Parameters

source
ICharSequence
paint
TextPaint
outerWidth
Int32
spacingMult
Single
spacingAdd
Single
includePad
Boolean
ellipsizedWidth
Int32
useFallbackLineSpacing
Boolean
Attributes

Applies to

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

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;IZ)V", "", ApiSince=33)]
public BoringLayout (string source, Android.Text.TextPaint paint, int outerWidth, Android.Text.Layout.Alignment align, float spacingMult, float spacingAdd, Android.Text.BoringLayout.Metrics metrics, bool includePad, Android.Text.TextUtils.TruncateAt? ellipsize, int ellipsizedWidth, bool useFallbackLineSpacing);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;IZ)V", "", ApiSince=33)>]
new Android.Text.BoringLayout : string * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * Android.Text.BoringLayout.Metrics * bool * Android.Text.TextUtils.TruncateAt * int * bool -> Android.Text.BoringLayout

Parameters

source
String
paint
TextPaint
outerWidth
Int32
spacingMult
Single
spacingAdd
Single
includePad
Boolean
ellipsizedWidth
Int32
useFallbackLineSpacing
Boolean
Attributes

Applies to