TextView.SetTextKeepState Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| Nome | Descrizione |
|---|---|
| SetTextKeepState(ICharSequence) |
Imposta il testo da visualizzare ma mantiene la posizione del cursore. |
| SetTextKeepState(String) |
Imposta il testo da visualizzare ma mantiene la posizione del cursore. |
| SetTextKeepState(ICharSequence, TextView+BufferType) |
Imposta il testo da visualizzare ma mantiene la posizione del cursore. |
| SetTextKeepState(String, TextView+BufferType) |
Imposta il testo da visualizzare ma mantiene la posizione del cursore. |
SetTextKeepState(ICharSequence)
Imposta il testo da visualizzare ma mantiene la posizione del cursore.
[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
Parametri
- text
- ICharSequence
testo da visualizzare
- Attributi
Commenti
Imposta il testo da visualizzare ma mantiene la posizione del cursore.
#setText(CharSequence) Come ad eccezione del fatto che la posizione del cursore (se presente) viene mantenuta nel nuovo testo.
Se necessario, TextView userà android.text.Spannable.Factory per creare l'oggetto finale o intermedio Spannable Spannables. Analogamente, verrà usato android.text.Editable.Factory per creare l'oggetto finale o intermedio Editable Editables.
per android.widget.TextView.setTextKeepState(java.lang.CharSequence).
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.
Vedi anche
Si applica a
SetTextKeepState(String)
Imposta il testo da visualizzare ma mantiene la posizione del cursore.
public void SetTextKeepState(string? text);
member this.SetTextKeepState : string -> unit
Parametri
- text
- String
testo da visualizzare
Commenti
Imposta il testo da visualizzare ma mantiene la posizione del cursore.
#setText(CharSequence) Come ad eccezione del fatto che la posizione del cursore (se presente) viene mantenuta nel nuovo testo.
Se necessario, TextView userà android.text.Spannable.Factory per creare l'oggetto finale o intermedio Spannable Spannables. Analogamente, verrà usato android.text.Editable.Factory per creare l'oggetto finale o intermedio Editable Editables.
per android.widget.TextView.setTextKeepState(java.lang.CharSequence).
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.
Si applica a
SetTextKeepState(ICharSequence, TextView+BufferType)
Imposta il testo da visualizzare ma mantiene la posizione del cursore.
[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
Parametri
- text
- ICharSequence
testo da visualizzare
- type
- TextView.BufferType
TextView.BufferType : textView.BufferType che definisce se il testo viene archiviato come testo statico, testo stilibile/esteso o testo modificabile
- Attributi
Commenti
per android.widget.TextView.setTextKeepState(java.lang.CharSequence).
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.
Vedi anche
- <xref:Android.Widget.TextView.SetText(Java.Lang.ICharSequence%2c+.BufferType)>
Si applica a
SetTextKeepState(String, TextView+BufferType)
Imposta il testo da visualizzare ma mantiene la posizione del cursore.
public void SetTextKeepState(string? text, Android.Widget.TextView.BufferType? type);
member this.SetTextKeepState : string * Android.Widget.TextView.BufferType -> unit
Parametri
- text
- String
testo da visualizzare
- type
- TextView.BufferType
TextView.BufferType : textView.BufferType che definisce se il testo viene archiviato come testo statico, testo stilibile/esteso o testo modificabile
Commenti
per android.widget.TextView.setTextKeepState(java.lang.CharSequence).
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.