Share via


BoringLayout.ReplaceOrMake Method

Definition

Overloads

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

Returns a BoringLayout for the specified text, potentially reusing this one if it is already suitable.

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

Returns a BoringLayout for the specified text, potentially reusing this one if it is already suitable.

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

Returns a BoringLayout for the specified text, potentially reusing this one if it is already suitable.

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

Returns a BoringLayout for the specified text, potentially reusing this one if it is already suitable.

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

Returns a BoringLayout for the specified text, potentially reusing this one if it is already suitable.

[Android.Runtime.Register("replaceOrMake", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;Z)Landroid/text/BoringLayout;", "GetReplaceOrMake_Ljava_lang_CharSequence_Landroid_text_TextPaint_ILandroid_text_Layout_Alignment_FFLandroid_text_BoringLayout_Metrics_ZHandler")]
public virtual Android.Text.BoringLayout? ReplaceOrMake (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("replaceOrMake", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;Z)Landroid/text/BoringLayout;", "GetReplaceOrMake_Ljava_lang_CharSequence_Landroid_text_TextPaint_ILandroid_text_Layout_Alignment_FFLandroid_text_BoringLayout_Metrics_ZHandler")>]
abstract member ReplaceOrMake : Java.Lang.ICharSequence * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * Android.Text.BoringLayout.Metrics * bool -> Android.Text.BoringLayout
override this.ReplaceOrMake : 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

Returns

Attributes

Remarks

Java documentation for android.text.BoringLayout.replaceOrMake(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

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

Returns a BoringLayout for the specified text, potentially reusing this one if it is already suitable.

public Android.Text.BoringLayout? ReplaceOrMake (string? source, Android.Text.TextPaint? paint, int outerwidth, Android.Text.Layout.Alignment? align, float spacingMult, float spacingAdd, Android.Text.BoringLayout.Metrics? metrics, bool includePad);
member this.ReplaceOrMake : string * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * Android.Text.BoringLayout.Metrics * bool -> Android.Text.BoringLayout

Parameters

source
String

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

Returns

Remarks

Java documentation for android.text.BoringLayout.replaceOrMake(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

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

[Android.Runtime.Register("replaceOrMake", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;Landroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;IZ)Landroid/text/BoringLayout;", "GetReplaceOrMake_Ljava_lang_CharSequence_Landroid_text_TextPaint_ILandroid_text_Layout_Alignment_Landroid_text_BoringLayout_Metrics_ZLandroid_text_TextUtils_TruncateAt_IZHandler", ApiSince=33)]
public virtual Android.Text.BoringLayout ReplaceOrMake (Java.Lang.ICharSequence source, Android.Text.TextPaint paint, int outerWidth, Android.Text.Layout.Alignment align, Android.Text.BoringLayout.Metrics metrics, bool includePad, Android.Text.TextUtils.TruncateAt? ellipsize, int ellipsizedWidth, bool useFallbackLineSpacing);
[<Android.Runtime.Register("replaceOrMake", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;Landroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;IZ)Landroid/text/BoringLayout;", "GetReplaceOrMake_Ljava_lang_CharSequence_Landroid_text_TextPaint_ILandroid_text_Layout_Alignment_Landroid_text_BoringLayout_Metrics_ZLandroid_text_TextUtils_TruncateAt_IZHandler", ApiSince=33)>]
abstract member ReplaceOrMake : Java.Lang.ICharSequence * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * Android.Text.BoringLayout.Metrics * bool * Android.Text.TextUtils.TruncateAt * int * bool -> Android.Text.BoringLayout
override this.ReplaceOrMake : Java.Lang.ICharSequence * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * Android.Text.BoringLayout.Metrics * bool * Android.Text.TextUtils.TruncateAt * int * bool -> Android.Text.BoringLayout

Parameters

source
ICharSequence
paint
TextPaint
outerWidth
Int32
includePad
Boolean
ellipsizedWidth
Int32
useFallbackLineSpacing
Boolean

Returns

Attributes

Applies to

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

public Android.Text.BoringLayout ReplaceOrMake (string source, Android.Text.TextPaint paint, int outerWidth, Android.Text.Layout.Alignment align, Android.Text.BoringLayout.Metrics metrics, bool includePad, Android.Text.TextUtils.TruncateAt? ellipsize, int ellipsizedWidth, bool useFallbackLineSpacing);
member this.ReplaceOrMake : string * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * Android.Text.BoringLayout.Metrics * bool * Android.Text.TextUtils.TruncateAt * int * bool -> Android.Text.BoringLayout

Parameters

source
String
paint
TextPaint
outerWidth
Int32
includePad
Boolean
ellipsizedWidth
Int32
useFallbackLineSpacing
Boolean

Returns

Applies to

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

Returns a BoringLayout for the specified text, potentially reusing this one if it is already suitable.

[Android.Runtime.Register("replaceOrMake", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;I)Landroid/text/BoringLayout;", "GetReplaceOrMake_Ljava_lang_CharSequence_Landroid_text_TextPaint_ILandroid_text_Layout_Alignment_FFLandroid_text_BoringLayout_Metrics_ZLandroid_text_TextUtils_TruncateAt_IHandler")]
public virtual Android.Text.BoringLayout? ReplaceOrMake (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("replaceOrMake", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;I)Landroid/text/BoringLayout;", "GetReplaceOrMake_Ljava_lang_CharSequence_Landroid_text_TextPaint_ILandroid_text_Layout_Alignment_FFLandroid_text_BoringLayout_Metrics_ZLandroid_text_TextUtils_TruncateAt_IHandler")>]
abstract member ReplaceOrMake : 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
override this.ReplaceOrMake : 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

Returns

Attributes

Remarks

Java documentation for android.text.BoringLayout.replaceOrMake(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

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

Returns a BoringLayout for the specified text, potentially reusing this one if it is already suitable.

public Android.Text.BoringLayout? ReplaceOrMake (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);
member this.ReplaceOrMake : 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

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

Returns

Remarks

Java documentation for android.text.BoringLayout.replaceOrMake(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