Android.Graphics.Paint.BreakText Method
Measure the text, stopping early if the measured width exceeds maxWidth.

Syntax

[Android.Runtime.Register("breakText", "(Ljava/lang/CharSequence;IIZF[F)I", "GetBreakText_Ljava_lang_CharSequence_IIZFarrayFHandler")]
public virtual int BreakText (Java.Lang.ICharSequence text, int start, int end, bool measureForwards, float maxWidth, float[] measuredWidth)

Parameters

text
The text to measure. Cannot be null.
start
The offset into text to begin measuring at
end
The end of the text slice to measure.
measureForwards
If true, measure forwards, starting at start. Otherwise, measure backwards, starting with end.
maxWidth
The maximum width to accumulate.
measuredWidth
Optional. If not null, returns the actual width measured.

Returns

Documentation for this section has not yet been entered.

Remarks

Measure the text, stopping early if the measured width exceeds maxWidth. Return the number of chars that were measured, and if measuredWidth is not null, return in it the actual width measured.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1