TextUtils.CopySpansFrom 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.
Copies the spans from the region start...end in
source to the region
destoff...destoff+end-start in dest.
[Android.Runtime.Register("copySpansFrom", "(Landroid/text/Spanned;IILjava/lang/Class;Landroid/text/Spannable;I)V", "")]
public static void CopySpansFrom(Android.Text.ISpanned? source, int start, int end, Java.Lang.Class? kind, Android.Text.ISpannable? dest, int destoff);
[<Android.Runtime.Register("copySpansFrom", "(Landroid/text/Spanned;IILjava/lang/Class;Landroid/text/Spannable;I)V", "")>]
static member CopySpansFrom : Android.Text.ISpanned * int * int * Java.Lang.Class * Android.Text.ISpannable * int -> unit
Parameters
- source
- ISpanned
The spanned text from which to copy span objects.
- start
- Int32
The first source character offset in the copied region.
- end
- Int32
The exclusive end offset of the source region.
- kind
- Class
The span class to copy, or null to include all span classes.
- dest
- ISpannable
The text to which the copied spans are attached.
- destoff
- Int32
The destination character offset that corresponds to start.
- Attributes
Exceptions
if any of the copied spans
are out of range in dest.
Remarks
Copies the spans from the region start...end in source to the region destoff...destoff+end-start in dest. Spans in source that begin before start or end after end but overlap this range are trimmed as if they began at start or ended at end.
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.