다음을 통해 공유


TextUtils.CopySpansFrom Method

Definition

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
start
Int32
end
Int32
kind
Class
dest
ISpannable
destoff
Int32
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.

Java documentation for android.text.TextUtils.copySpansFrom(android.text.Spanned, int, int, java.lang.Class, android.text.Spannable, int).

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