Bagikan melalui


SpannedString Class

Definition

This is the class for text whose content and markup are immutable.

[Android.Runtime.Register("android/text/SpannedString", DoNotGenerateAcw=true)]
public sealed class SpannedString : Android.Text.SpannableStringInternal, Android.Text.IGetChars, Android.Text.ISpanned, IDisposable, Java.Interop.IJavaPeerable, System.Collections.Generic.IEnumerable<char>
[<Android.Runtime.Register("android/text/SpannedString", DoNotGenerateAcw=true)>]
type SpannedString = class
    inherit SpannableStringInternal
    interface IGetChars
    interface ICharSequence
    interface seq<char>
    interface IEnumerable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface ISpanned
Inheritance
Attributes
Implements

Remarks

This is the class for text whose content and markup are immutable. For mutable markup, see SpannableString; for mutable text, see SpannableStringBuilder.

Java documentation for android.text.SpannedString.

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.

Constructors

SpannedString(ICharSequence)

For the backward compatibility reasons, this constructor copies all spans including android.text.NoCopySpan.

SpannedString(String)

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass (Inherited from SpannableStringInternal)
ThresholdType (Inherited from SpannableStringInternal)

Methods

CharAt(Int32)
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

GetChars(Int32, Int32, Char[], Int32)
GetEnumerator()
GetHashCode()

Returns an integer hash code for this object.

GetSpanEnd(Object)

Return the end of the range of text to which the specified markup object is attached, or -1 if the object is not attached.

GetSpanFlags(Object)
GetSpans(Int32, Int32, Class)
GetSpanStart(Object)

Return the beginning of the range of text to which the specified markup object is attached, or -1 if the object is not attached.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Length()
NextSpanTransition(Int32, Int32, Class)

Return the first offset greater than start where a markup object of class type begins or ends, or limit if there are no starts or ends greater than start but less than limit.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SubSequence(Int32, Int32)
SubSequenceFormatted(Int32, Int32)

Returns a CharSequence from the start index (inclusive) to the end index (exclusive) of this sequence.

ToArray<T>() (Inherited from Object)
ToString()
UnregisterFromRuntime() (Inherited from Object)
ValueOf(ICharSequence)
ValueOf(String)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IEnumerable.GetEnumerator()
IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)
SubSequence(ICharSequence, Int32, Int32)

Applies to