IEditable IEditable Interface

Definition

This is the interface for text whose content and markup can be changed (as opposed to immutable text like Strings).

[Android.Runtime.Register("android/text/Editable", "", "Android.Text.IEditableInvoker", ApiSince=1)]
public interface IEditable : Android.Text.IGetChars, Android.Text.ISpannable, IDisposable, Java.Lang.IAppendable, System.Collections.Generic.IEnumerable<char>
type IEditable = interface
    interface IGetChars
    interface ICharSequence
    interface IJavaObject
    interface IDisposable
    interface seq<char>
    interface IEnumerable
    interface ISpannable
    interface ISpanned
    interface IAppendable
Derived
Attributes
Implements

Remarks

Android platform documentation

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.

Methods

Append(Char) Append(Char)

Convenience for append(String.valueOf(text)).

Append(ICharSequence) Append(ICharSequence)

Convenience for replace(length(), length(), text, 0, text.length())

Append(ICharSequence, Int32, Int32) Append(ICharSequence, Int32, Int32)

Convenience for replace(length(), length(), text, start, end)

CharAt(Int32) CharAt(Int32)

Returns the character at index.

(Inherited from ICharSequence)
Clear() Clear()

Convenience for replace(0, length(), "", 0, 0)

ClearSpans() ClearSpans()

Removes all spans from the Editable, as if by calling RemoveSpan(Object) on each of them.

Delete(Int32, Int32) Delete(Int32, Int32)

Convenience for replace(st, en, "", 0, 0)

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

Exactly like String.getChars(): copy chars start through end - 1 from this CharSequence into dest beginning at offset destoff.

(Inherited from IGetChars)
GetFilters() GetFilters()

Returns the array of input filters that are currently applied to changes to this Editable.

GetSpanEnd(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.

(Inherited from ISpanned)
GetSpanFlags(Object) GetSpanFlags(Object) Inherited from ISpanned
GetSpans(Int32, Int32, Class) GetSpans(Int32, Int32, Class) Inherited from ISpanned
GetSpanStart(Object) 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.

(Inherited from ISpanned)
Insert(Int32, ICharSequence) Insert(Int32, ICharSequence)

Convenience for replace(where, where, text, 0, text.length());

Insert(Int32, ICharSequence, Int32, Int32) Insert(Int32, ICharSequence, Int32, Int32)

Convenience for replace(where, where, text, start, end)

Length() Length()

Returns the number of characters in this sequence.

(Inherited from ICharSequence)
NextSpanTransition(Int32, Int32, Class) 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.

(Inherited from ISpanned)
RemoveSpan(Object) RemoveSpan(Object)

Remove the specified object from the range of text to which it was attached, if any.

(Inherited from ISpannable)
Replace(Int32, Int32, ICharSequence) Replace(Int32, Int32, ICharSequence)

Convenience for replace(st, en, text, 0, text.length())

Replace(Int32, Int32, ICharSequence, Int32, Int32) Replace(Int32, Int32, ICharSequence, Int32, Int32)

Replaces the specified range (st&hellip;en) of text in this Editable with a copy of the slice start&hellip;end from source.

SetFilters(IInputFilter[]) SetFilters(IInputFilter[])

Sets the series of filters that will be called in succession whenever the text of this Editable is changed, each of which has the opportunity to limit or transform the text that is being inserted.

SetSpan(Object, Int32, Int32, SpanTypes) SetSpan(Object, Int32, Int32, SpanTypes)

Attach the specified markup object to the range start&hellip;end of the text, or move the object to that range if it was already attached elsewhere.

(Inherited from ISpannable)
SubSequenceFormatted(Int32, Int32) SubSequenceFormatted(Int32, Int32)

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

(Inherited from ICharSequence)
ToString() ToString()

Returns a string with the same characters in the same order as in this sequence.

(Inherited from ICharSequence)

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

Append(IEditable, String) Append(IEditable, String)
Append(IEditable, String, Int32, Int32) Append(IEditable, String, Int32, Int32)
Insert(IEditable, Int32, String) Insert(IEditable, Int32, String)
Insert(IEditable, Int32, String, Int32, Int32) Insert(IEditable, Int32, String, Int32, Int32)
Replace(IEditable, Int32, Int32, String) Replace(IEditable, Int32, Int32, String)
Replace(IEditable, Int32, Int32, String, Int32, Int32) Replace(IEditable, Int32, Int32, String, Int32, Int32)
JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
Append(IAppendable, String) Append(IAppendable, String)
Append(IAppendable, String, Int32, Int32) Append(IAppendable, String, Int32, Int32)
SubSequence(ICharSequence, Int32, Int32) SubSequence(ICharSequence, Int32, Int32)

Applies to