Megosztás a következőn keresztül:


SpannableString Class

Definition

This is the class for text whose content is immutable but to which markup objects can be attached and detached.

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

Remarks

This is the class for text whose content is immutable but to which markup objects can be attached and detached. For mutable text, see SpannableStringBuilder.

Java documentation for android.text.SpannableString.

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

SpannableString(ICharSequence)

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

SpannableString(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SpannableString(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

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

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)
RemoveSpan(Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetSpan(Object, Int32, Int32, SpanTypes)
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