BoringLayout.Make Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Make(ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, BoringLayout+Metrics, Boolean, TextUtils+TruncateAt, Int32) |
Utility function to construct a BoringLayout instance. |
Make(String, TextPaint, Int32, Layout+Alignment, BoringLayout+Metrics, Boolean, TextUtils+TruncateAt, Int32, Boolean) | |
Make(String, TextPaint, Int32, Layout+Alignment, Single, Single, BoringLayout+Metrics, Boolean, TextUtils+TruncateAt, Int32) |
Utility function to construct a BoringLayout instance. |
Make(String, TextPaint, Int32, Layout+Alignment, Single, Single, BoringLayout+Metrics, Boolean) |
Utility function to construct a BoringLayout instance. |
Make(ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, BoringLayout+Metrics, Boolean) |
Utility function to construct a BoringLayout instance. |
Make(ICharSequence, TextPaint, Int32, Layout+Alignment, BoringLayout+Metrics, Boolean, TextUtils+TruncateAt, Int32, Boolean) |
Make(ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, BoringLayout+Metrics, Boolean, TextUtils+TruncateAt, Int32)
Utility function to construct a BoringLayout instance.
[Android.Runtime.Register("make", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;I)Landroid/text/BoringLayout;", "")]
public static Android.Text.BoringLayout? Make (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("make", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;I)Landroid/text/BoringLayout;", "")>]
static member Make : 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
the wrapping width for the text
- align
- Layout.Alignment
whether to left, right, or center the text
- spacingmult
- Single
- spacingadd
- Single
- 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
- ellipsize
- TextUtils.TruncateAt
- ellipsizedWidth
- Int32
Returns
- 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
Make(String, TextPaint, Int32, Layout+Alignment, BoringLayout+Metrics, Boolean, TextUtils+TruncateAt, Int32, Boolean)
public static Android.Text.BoringLayout Make (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);
static member Make : 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
- align
- Layout.Alignment
- metrics
- BoringLayout.Metrics
- includePad
- Boolean
- ellipsize
- TextUtils.TruncateAt
- ellipsizedWidth
- Int32
- useFallbackLineSpacing
- Boolean
Returns
Applies to
Make(String, TextPaint, Int32, Layout+Alignment, Single, Single, BoringLayout+Metrics, Boolean, TextUtils+TruncateAt, Int32)
Utility function to construct a BoringLayout instance.
public static Android.Text.BoringLayout? Make (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);
static member Make : 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
the wrapping width for the text
- align
- Layout.Alignment
whether to left, right, or center the text
- spacingmult
- Single
- spacingadd
- Single
- 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
- ellipsize
- TextUtils.TruncateAt
- ellipsizedWidth
- 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
Make(String, TextPaint, Int32, Layout+Alignment, Single, Single, BoringLayout+Metrics, Boolean)
Utility function to construct a BoringLayout instance.
public static Android.Text.BoringLayout? Make (string? source, Android.Text.TextPaint? paint, int outerWidth, Android.Text.Layout.Alignment? align, float spacingMult, float spacingAdd, Android.Text.BoringLayout.Metrics? metrics, bool includePad);
static member Make : 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
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
Make(ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, BoringLayout+Metrics, Boolean)
Utility function to construct a BoringLayout instance.
[Android.Runtime.Register("make", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;Z)Landroid/text/BoringLayout;", "")]
public static Android.Text.BoringLayout? Make (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("make", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFLandroid/text/BoringLayout$Metrics;Z)Landroid/text/BoringLayout;", "")>]
static member Make : 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
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
Make(ICharSequence, TextPaint, Int32, Layout+Alignment, BoringLayout+Metrics, Boolean, TextUtils+TruncateAt, Int32, Boolean)
[Android.Runtime.Register("make", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;Landroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;IZ)Landroid/text/BoringLayout;", "", ApiSince=33)]
public static Android.Text.BoringLayout Make (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("make", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;Landroid/text/BoringLayout$Metrics;ZLandroid/text/TextUtils$TruncateAt;IZ)Landroid/text/BoringLayout;", "", ApiSince=33)>]
static member Make : 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
- align
- Layout.Alignment
- metrics
- BoringLayout.Metrics
- includePad
- Boolean
- ellipsize
- TextUtils.TruncateAt
- ellipsizedWidth
- Int32
- useFallbackLineSpacing
- Boolean
Returns
- Attributes