Android.Text.SpannableStringBuilder.GetTextRunCursor Method
Returns the next cursor position in the run.

Syntax

[Android.Runtime.Register("getTextRunCursor", "(IIIIILandroid/graphics/Paint;)I", "GetGetTextRunCursor_IIIIILandroid_graphics_Paint_Handler")]
[System.Obsolete("deprecated")]
public virtual int GetTextRunCursor (int contextStart, int contextEnd, int flags, int offset, int cursorOpt, Android.Graphics.Paint p)

Parameters

contextStart
the start index of the context
contextEnd
the (non-inclusive) end index of the context
dir
either DIRECTION_RTL or DIRECTION_LTR
offset
the cursor position to move from
cursorOpt
how to move the cursor, one of CURSOR_AFTER, CURSOR_AT_OR_AFTER, CURSOR_BEFORE, CURSOR_AT_OR_BEFORE, or CURSOR_AT
p
the Paint object that is requesting this information
flags
either DIRECTION_RTL or DIRECTION_LTR

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the next cursor position in the run. This avoids placing the cursor between surrogates, between characters that form conjuncts, between base characters and combining marks, or within a reordering cluster.

The context is the shaping context for cursor movement, generally the bounds of the metric span enclosing the cursor in the direction of movement. contextStart, contextEnd and offset are relative to the start of the string.

If cursorOpt is CURSOR_AT and the offset is not a valid cursor position, this returns -1. Otherwise this will never return a value before contextStart or after contextEnd.

[Android Documentation]

Requirements

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