TextView.SetTextKeepState 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.
Overloads
SetTextKeepState(ICharSequence) |
Sets the text to be displayed but retains the cursor position. |
SetTextKeepState(String) |
Sets the text to be displayed but retains the cursor position. |
SetTextKeepState(ICharSequence, TextView+BufferType) |
Sets the text to be displayed but retains the cursor position. |
SetTextKeepState(String, TextView+BufferType) |
Sets the text to be displayed but retains the cursor position. |
SetTextKeepState(ICharSequence)
Sets the text to be displayed but retains the cursor position.
[Android.Runtime.Register("setTextKeepState", "(Ljava/lang/CharSequence;)V", "")]
public void SetTextKeepState (Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("setTextKeepState", "(Ljava/lang/CharSequence;)V", "")>]
member this.SetTextKeepState : Java.Lang.ICharSequence -> unit
Parameters
- text
- ICharSequence
text to be displayed
- Attributes
Remarks
Sets the text to be displayed but retains the cursor position. Same as #setText(CharSequence)
except that the cursor position (if any) is retained in the new text. <p/> When required, TextView will use android.text.Spannable.Factory
to create final or intermediate Spannable Spannables
. Likewise it will use android.text.Editable.Factory
to create final or intermediate Editable Editables
.
Java documentation for android.widget.TextView.setTextKeepState(java.lang.CharSequence)
.
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.
See also
Applies to
SetTextKeepState(String)
Sets the text to be displayed but retains the cursor position.
public void SetTextKeepState (string? text);
member this.SetTextKeepState : string -> unit
Parameters
- text
- String
text to be displayed
Remarks
Sets the text to be displayed but retains the cursor position. Same as #setText(CharSequence)
except that the cursor position (if any) is retained in the new text. <p/> When required, TextView will use android.text.Spannable.Factory
to create final or intermediate Spannable Spannables
. Likewise it will use android.text.Editable.Factory
to create final or intermediate Editable Editables
.
Java documentation for android.widget.TextView.setTextKeepState(java.lang.CharSequence)
.
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
SetTextKeepState(ICharSequence, TextView+BufferType)
Sets the text to be displayed but retains the cursor position.
[Android.Runtime.Register("setTextKeepState", "(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V", "")]
public void SetTextKeepState (Java.Lang.ICharSequence? text, Android.Widget.TextView.BufferType? type);
[<Android.Runtime.Register("setTextKeepState", "(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V", "")>]
member this.SetTextKeepState : Java.Lang.ICharSequence * Android.Widget.TextView.BufferType -> unit
Parameters
- text
- ICharSequence
text to be displayed
- type
- TextView.BufferType
- Attributes
Remarks
Java documentation for android.widget.TextView.setTextKeepState(java.lang.CharSequence)
.
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.
See also
- <xref:Android.Widget.TextView.SetText(Java.Lang.ICharSequence%2c+.BufferType)>
Applies to
SetTextKeepState(String, TextView+BufferType)
Sets the text to be displayed but retains the cursor position.
public void SetTextKeepState (string? text, Android.Widget.TextView.BufferType? type);
member this.SetTextKeepState : string * Android.Widget.TextView.BufferType -> unit
Parameters
- text
- String
text to be displayed
- type
- TextView.BufferType
Remarks
Java documentation for android.widget.TextView.setTextKeepState(java.lang.CharSequence)
.
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.