共用方式為


TextView.SetTextKeepState 方法

定義

多載

SetTextKeepState(ICharSequence)

設定要顯示的文字,但會保留游標位置。

SetTextKeepState(String)

設定要顯示的文字,但會保留游標位置。

SetTextKeepState(ICharSequence, TextView+BufferType)

設定要顯示的文字,但會保留游標位置。

SetTextKeepState(String, TextView+BufferType)

設定要顯示的文字,但會保留游標位置。

SetTextKeepState(ICharSequence)

設定要顯示的文字,但會保留游標位置。

[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

參數

text
ICharSequence

要顯示的文字

屬性

備註

設定要顯示的文字,但會保留游標位置。 與 #setText(CharSequence) 相同,除非在新的文字中保留任何) ,資料指標位置 (。 <p/ > 必要時,TextView 會用來 android.text.Spannable.Factory 建立最終或中繼 Spannable Spannables 。 同樣地,它會使用 android.text.Editable.Factory 來建立最終或中繼 Editable Editables

android.widget.TextView.setTextKeepState(java.lang.CharSequence) JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

另請參閱

適用於

SetTextKeepState(String)

設定要顯示的文字,但會保留游標位置。

public void SetTextKeepState (string? text);
member this.SetTextKeepState : string -> unit

參數

text
String

要顯示的文字

備註

設定要顯示的文字,但會保留游標位置。 與 #setText(CharSequence) 相同,除非在新的文字中保留任何) ,資料指標位置 (。 <p/ > 必要時,TextView 會用來 android.text.Spannable.Factory 建立最終或中繼 Spannable Spannables 。 同樣地,它會使用 android.text.Editable.Factory 來建立最終或中繼 Editable Editables

android.widget.TextView.setTextKeepState(java.lang.CharSequence) JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

適用於

SetTextKeepState(ICharSequence, TextView+BufferType)

設定要顯示的文字,但會保留游標位置。

[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

參數

text
ICharSequence

要顯示的文字

屬性

備註

android.widget.TextView.setTextKeepState(java.lang.CharSequence) JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

另請參閱

  • <xref:Android.Widget.TextView.SetText(Java.Lang.ICharSequence%2c+.BufferType)>

適用於

SetTextKeepState(String, TextView+BufferType)

設定要顯示的文字,但會保留游標位置。

public void SetTextKeepState (string? text, Android.Widget.TextView.BufferType? type);
member this.SetTextKeepState : string * Android.Widget.TextView.BufferType -> unit

參數

text
String

要顯示的文字

備註

android.widget.TextView.setTextKeepState(java.lang.CharSequence) JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

適用於