UnicodeSet.SpanBack 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
| Name | Description |
|---|---|
| SpanBack(String, UnicodeSet+SpanCondition) | |
| SpanBack(String, Int32, UnicodeSet+SpanCondition) | |
| SpanBack(ICharSequence, Int32, UnicodeSet+SpanCondition) |
Span a string backwards (from the fromIndex) using this UnicodeSet. |
| SpanBack(ICharSequence, UnicodeSet+SpanCondition) |
Span a string backwards (from the end) using this UnicodeSet. |
SpanBack(String, UnicodeSet+SpanCondition)
public int SpanBack(string? s, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
member this.SpanBack : string * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
- s
- String
- spanCondition
- UnicodeSet.SpanCondition
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
SpanBack(String, Int32, UnicodeSet+SpanCondition)
public int SpanBack(string? s, int fromIndex, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
member this.SpanBack : string * int * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
- s
- String
- fromIndex
- Int32
- spanCondition
- UnicodeSet.SpanCondition
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
SpanBack(ICharSequence, Int32, UnicodeSet+SpanCondition)
Span a string backwards (from the fromIndex) using this UnicodeSet.
[Android.Runtime.Register("spanBack", "(Ljava/lang/CharSequence;ILandroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpanBack_Ljava_lang_CharSequence_ILandroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)]
public virtual int SpanBack(Java.Lang.ICharSequence? s, int fromIndex, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
[<Android.Runtime.Register("spanBack", "(Ljava/lang/CharSequence;ILandroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpanBack_Ljava_lang_CharSequence_ILandroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)>]
abstract member SpanBack : Java.Lang.ICharSequence * int * Android.Icu.Text.UnicodeSet.SpanCondition -> int
override this.SpanBack : Java.Lang.ICharSequence * int * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
The string to be spanned
- fromIndex
- Int32
The index of the char (exclusive) that the string should be spanned backwards
- spanCondition
- UnicodeSet.SpanCondition
The span condition
Returns
The string index which starts the span (i.e. inclusive).
- Attributes
Remarks
Span a string backwards (from the fromIndex) using this UnicodeSet. If the fromIndex is less than 0, spanBack will return 0. If fromIndex is greater than the string length, spanBack will start from the string length. To replace, count elements, or delete spans, see UnicodeSetSpanner.
Android reference for android.icu.text.UnicodeSet.spanBack.
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
SpanBack(ICharSequence, UnicodeSet+SpanCondition)
Span a string backwards (from the end) using this UnicodeSet.
[Android.Runtime.Register("spanBack", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpanBack_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)]
public virtual int SpanBack(Java.Lang.ICharSequence? s, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
[<Android.Runtime.Register("spanBack", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpanBack_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)>]
abstract member SpanBack : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSet.SpanCondition -> int
override this.SpanBack : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
The string to be spanned
- spanCondition
- UnicodeSet.SpanCondition
The span condition
Returns
The string index which starts the span (i.e. inclusive).
- Attributes
Remarks
Span a string backwards (from the end) using this UnicodeSet. To replace, count elements, or delete spans, see UnicodeSetSpanner.
Android reference for android.icu.text.UnicodeSet.spanBack.
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.